[Rcpp-commits] r3845 - in pkg/Rcpp: . inst/include/Rcpp/module
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Oct 28 00:17:03 CEST 2012
Author: edd
Date: 2012-10-28 00:17:03 +0200 (Sun, 28 Oct 2012)
New Revision: 3845
Modified:
pkg/Rcpp/ChangeLog
pkg/Rcpp/inst/include/Rcpp/module/macros.h
Log:
place forward declaration of class into macro
Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog 2012-10-27 00:42:00 UTC (rev 3844)
+++ pkg/Rcpp/ChangeLog 2012-10-27 22:17:03 UTC (rev 3845)
@@ -1,3 +1,8 @@
+2012-10-27 Dirk Eddelbuettel <edd at debian.org>
+
+ * inst/include/Rcpp/module/macros.h: Add forward declaration of class
+ to macro 'RCPP_EXPOSED_CLASS'
+
2012-10-25 Romain Francois <romain at r-enthusiasts.com>
* include/Rcpp/internal/wrap.h: wrapping module object with the help
@@ -29,17 +34,17 @@
simplified the code (removing 35% of the generated code now rendered useless)
* include/Rcpp/module/Module_generated_PointerCppMethod.h: using module_wrap and
simplified the code
- * include/Rcpp/traits/module_wrap_traits.h : new file. helping implementation of
+ * include/Rcpp/traits/module_wrap_traits.h : new file. helping implementation of
module_wrap
-
+
* R/00_classes.R: C++OverloadedMethods gets the field "nargs" to capture
the number of arguments
-
+
* R/01_show.R: cleanup
-
- * R/Module.R: handle the case where a method has no argument. In that
+
+ * R/Module.R: handle the case where a method has no argument. In that
case, the ellipsis does not end up in the formals
-
+
* include/Rcpp/Module.h: exposing nargs in C++OverloadedMethods
2012-10-22 Romain Francois <romain at r-enthusiasts.com>
Modified: pkg/Rcpp/inst/include/Rcpp/module/macros.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/module/macros.h 2012-10-27 00:42:00 UTC (rev 3844)
+++ pkg/Rcpp/inst/include/Rcpp/module/macros.h 2012-10-27 22:17:03 UTC (rev 3845)
@@ -30,6 +30,7 @@
#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; \
RCPP_EXPOSED_AS(CLASS) \
RCPP_EXPOSED_WRAP(CLASS)
More information about the Rcpp-commits
mailing list