From: William F. <wsf...@us...> - 2006-07-05 21:24:41
|
Update of /cvsroot/swig/SWIG/Examples/test-suite In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv20425/Examples/test-suite Modified Files: common.mk Added Files: special_variables.i Log Message: $symname test Index: common.mk =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/test-suite/common.mk,v retrieving revision 1.182 retrieving revision 1.183 diff -C2 -d -r1.182 -r1.183 *** common.mk 4 Jul 2006 21:10:34 -0000 1.182 --- common.mk 5 Jul 2006 21:24:36 -0000 1.183 *************** *** 231,234 **** --- 231,235 ---- smart_pointer_static \ smart_pointer_typedef \ + special_variables \ static_array_member \ static_const_member \ --- NEW FILE: special_variables.i --- %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) {} }; %} |