swig/SWIG/Examples/test-suite/preproc_2.i
Dave Beazley 516036631c The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

22 lines
549 B
C

/* This SWIG -*- c -*- interface is to test for some strange
preprocessor bug.
I get syntax errors unless I remove the apostrophe in the comment
or the sharp-sign substitution. (The apostrophe seems to disable
sharp-sign substitution.)
*/
%module preproc_2;
%define TYPEMAP_LIST_VECTOR_INPUT_OUTPUT(SCM_TYPE)
/* Don't check for NULL pointers (override checks). */
%typemap(argout, doc="($arg <vector of <" #SCM_TYPE ">>)")
int *VECTORLENOUTPUT
{
}
%enddef
TYPEMAP_LIST_VECTOR_INPUT_OUTPUT(boolean)