From: Marcelo M. <mar...@us...> - 2004-10-30 21:28:46
|
Update of /cvsroot/swig/SWIG/Examples/test-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv945/Examples/test-suite Modified Files: preproc.i Log Message: now 'defined' as variable name is fixed Index: preproc.i =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/test-suite/preproc.i,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** preproc.i 30 Oct 2004 13:04:07 -0000 1.7 --- preproc.i 30 Oct 2004 21:28:36 -0000 1.8 *************** *** 271,278 **** %inline %{ ! int endif = 0; ! int define = 0; ! /* this is not working */ ! /* int defined = 0; */ %} --- 271,286 ---- + #if defined(one) + /* hello */ + #else + /* chiao */ + #endif; + + #ifdef SWIGRUBY + %rename(ddefined) defined; + #endif %inline %{ ! const int endif = 1; ! const int define = 1; ! const int defined = 1; %} |