fix macro clash with %mangle in swigmacros.swig so that test can run in c++ mode

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-05-19 21:06:13 +00:00
commit 7d4916b938

View file

@ -228,15 +228,14 @@ This testcase tests operators for defines
#ifndef SWIGOCTAVE
#ifdef __cplusplus
#define %mangle(...) #@__VA_ARGS__
#define %mangle_str(...) ##@__VA_ARGS__
#define %mangle_macro(...) #@__VA_ARGS__
#define %mangle_macro_str(...) ##@__VA_ARGS__
%define my_func(...)
inline const char* mangle ## #@__VA_ARGS__ () {
return %mangle_str(__VA_ARGS__);
inline const char* mangle_macro ## #@__VA_ARGS__ () {
return %mangle_macro_str(__VA_ARGS__);
}
%enddef
@ -246,7 +245,6 @@ inline const char* mangle ## #@__VA_ARGS__ () {
}
#endif
#endif
#if defined (__cplusplus) \