[Rinside-commits] r153 - pkg/inst/examples/standard

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon May 3 21:35:36 CEST 2010


Author: edd
Date: 2010-05-03 21:35:36 +0200 (Mon, 03 May 2010)
New Revision: 153

Modified:
   pkg/inst/examples/standard/rinside_callbacks0.cpp
Log:
added required #if defined() for Callback code


Modified: pkg/inst/examples/standard/rinside_callbacks0.cpp
===================================================================
--- pkg/inst/examples/standard/rinside_callbacks0.cpp	2010-05-03 19:03:30 UTC (rev 152)
+++ pkg/inst/examples/standard/rinside_callbacks0.cpp	2010-05-03 19:35:36 UTC (rev 153)
@@ -12,8 +12,10 @@
 int main(int argc, char *argv[]) {
 
     RInside R(argc, argv);              // create an embedded R instance 
+    #if defined(RINSIDE_CALLBACKS)
     R.set_callbacks( new Callbacks() );
     R.repl() ;
+    #endif
     exit(0);
 }
 



More information about the Rinside-commits mailing list