From c26f2b387b44e88469a301fdfd2bb78c9a71e8b4 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Mon, 13 Feb 2006 08:56:55 +0000 Subject: [PATCH] fix macro expansion issue reported by Andreas Held git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8812 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/cpp_basic.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Examples/test-suite/cpp_basic.i b/Examples/test-suite/cpp_basic.i index 734b678b9..becf84708 100644 --- a/Examples/test-suite/cpp_basic.i +++ b/Examples/test-suite/cpp_basic.i @@ -82,8 +82,9 @@ int test_func_ptr(Foo *f, int a) { %} +#ifdef __cplusplus %define MACRO_WINDOW_SHOW -void show(PyObject *count = 0, PyObject *data = 0) +void show(void *count = 0, void *data = 0) { return; } @@ -101,3 +102,4 @@ void show(PyObject *count = 0, PyObject *data = 0) MACRO_WINDOW_SHOW } +#endif