When a compile error occurs in generated C code which
was embedded in a source.i file the compiler directs
the user at the gernerated source_wrap.c code rather
than the source.i file. This can be resolved by
placing a #line directive into the generated
source_wrap.c code just before the emmbedded C code
in pasted in:
#line n "source.i"
bison does this. Why doesn't SWIG?
An example of bison doing this can be found at:
Log in to post a comment.