add test for the mangling extension #@ preproc.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5757 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
135a367a2e
commit
503c615c67
3 changed files with 47 additions and 11 deletions
|
|
@ -204,4 +204,20 @@ This testcase tests operators for defines
|
|||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#define %mangle(...) #@__VA_ARGS__
|
||||
#define %mangle_str(...) ##@__VA_ARGS__
|
||||
|
||||
%define my_func(...)
|
||||
inline const char* mangle ## #@__VA_ARGS__ () {
|
||||
return %mangle_str(__VA_ARGS__);
|
||||
}
|
||||
%enddef
|
||||
|
||||
%inline {
|
||||
my_func(class Int) ;
|
||||
my_func(std::pair<double, std::complex< double > >*) ;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue