From: Robin A. <rob...@gm...> - 2008-12-13 16:11:46
|
Hello, I've been using SWIG for a while now (1.3.36) and I'm surprised I've only just come across this. The following module: %module test; #define X "test" #undef X #define X "test2" Compiled with swig -python test.i ...causes SWIG to say: test.i(4): Warning(302): Identifier 'X' redefined (ignored), test.i(2): Warning(302): previous definition of 'X'. Does SWIG ignore the #undef directive, or am I being dumb? -Rob |