From: Brian H. <bha...@ha...> - 2007-03-09 15:13:43
|
Hi, =20 I'm new to SWIG and have a question involving SWIG code generation. I've been going through the documentation and searching the email archives, but haven't found the information I'm looking for. =20 I have a wrapper that SWIG has generated (target language is Lua), but I would like to alter the behavior of that wrapper (specifically, the stack contents returned to Lua). The easiest way to do this, as far as I can tell, is if I wrap the SWIG wrapper with my own function. My wrapper would call the SWIG wrapper, and then update the Lua stack before returning. =20 I can edit the generated code to do this, but am wondering if there is some way to do this via directives in the interface file? Any thoughts? =20 Thanks, Brian =20 |