[Rcpp-commits] r3851 - in pkg/Rcpp: . inst/include/Rcpp/module

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Oct 29 11:37:25 CET 2012


Author: romain
Date: 2012-10-29 11:37:24 +0100 (Mon, 29 Oct 2012)
New Revision: 3851

Modified:
   pkg/Rcpp/ChangeLog
   pkg/Rcpp/inst/include/Rcpp/module/macros.h
Log:
added RCPP_EXPOSED_CLASS_NODECL macro

Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog	2012-10-29 10:00:19 UTC (rev 3850)
+++ pkg/Rcpp/ChangeLog	2012-10-29 10:37:24 UTC (rev 3851)
@@ -1,6 +1,7 @@
 2012-10-29  Romain Francois <romain at r-enthusiasts.com>
 
     * R/Module.R: Taking care of a check warning
+    * include/Rcpp/module/macros.h: adding RCPP_EXPOSED_CLASS_NODECL
 
 2012-10-28  Dirk Eddelbuettel  <edd at debian.org>
 

Modified: pkg/Rcpp/inst/include/Rcpp/module/macros.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/module/macros.h	2012-10-29 10:00:19 UTC (rev 3850)
+++ pkg/Rcpp/inst/include/Rcpp/module/macros.h	2012-10-29 10:37:24 UTC (rev 3851)
@@ -29,10 +29,12 @@
 #define RCPP_EXPOSED_AS(CLASS)   namespace Rcpp{ namespace traits{ template<> struct r_type_traits< CLASS >{ typedef r_type_module_object_tag r_category ; } ; }}
 #define RCPP_EXPOSED_WRAP(CLASS) namespace Rcpp{ namespace traits{ template<> struct wrap_type_traits< CLASS >{typedef wrap_type_module_object_tag wrap_category ; } ; }}
 
-#define RCPP_EXPOSED_CLASS(CLASS) \
-  class CLASS;                    \
+#define RCPP_EXPOSED_CLASS_NODECL(CLASS) \
   RCPP_EXPOSED_AS(CLASS)          \
   RCPP_EXPOSED_WRAP(CLASS)
 
+#define RCPP_EXPOSED_CLASS(CLASS) \
+  class CLASS;                    \
+  RCPP_EXPOSED_CLASS_NODECL(CLASS)
 
 #endif



More information about the Rcpp-commits mailing list