[pypy-svn] r75963 - pypy/branch/reflex-support/pypy/module/cppyy/include

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Jul 7 12:44:07 CEST 2010


Author: cfbolz
Date: Wed Jul  7 12:44:06 2010
New Revision: 75963

Modified:
   pypy/branch/reflex-support/pypy/module/cppyy/include/reflexcwrapper.h
Log:
(cfbolz, wlav, arigo): make this work in C


Modified: pypy/branch/reflex-support/pypy/module/cppyy/include/reflexcwrapper.h
==============================================================================
--- pypy/branch/reflex-support/pypy/module/cppyy/include/reflexcwrapper.h	(original)
+++ pypy/branch/reflex-support/pypy/module/cppyy/include/reflexcwrapper.h	Wed Jul  7 12:44:06 2010
@@ -2,7 +2,9 @@
 #ifndef CPPYY_REFLEXCWRAPPER
 #define CPPYY_REFLEXCWRAPPER
 
+#ifdef __cplusplus
 extern "C" {
+#endif // ifdef __cplusplus
     long callstatic_l(const char* class_name, int method_index, int numargs, void* args[]);
     double callstatic_d(const char* class_name, int method_index, int numargs, void* args[]);
     long callmethod_l(const char* class_name, int method_index, void* self, int numargs, void* args[]);
@@ -18,6 +20,8 @@
     int is_static(const char* class_name, int method_index);
 
     void myfree(void* ptr);
+#ifdef __cplusplus
 }
+#endif // ifdef __cplusplus
 
 #endif // ifndef CPPYY_REFLEXCWRAPPER



More information about the Pypy-commit mailing list