swig/Examples/test-suite/special_variables.i
William S Fulton b775891bc6 $symname test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9198 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-05 21:24:36 +00:00

20 lines
341 B
OpenEdge ABL

%module special_variables
// will fail to compile if $symname is not expanded
%typemap(argout) int i {
$symname(99);
}
%{
#define KKK_testmethod testmethod
#define KKK_teststaticmethod KKK::teststaticmethod
%}
%inline %{
void testmethod(int i) {}
struct KKK {
void testmethod(int i) {}
static void teststaticmethod(int i) {}
};
%}