How to inject code at the top and bottom of each method generated in cpp wrap file by SWIG?
prajjwal prem <[email protected]> Mon, 24 Apr 2023 15:27:05 -0600
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <CADqCKMwPCm4nHM3h7Yd_ixY=sOte2fivkRZxWdZr5RGA7UF4TQ@mail.gmail.com> |
Hi All,
How to inject code at the top and bottom of each method generated in cpp
wrap file by SWIG?
For Example:
SWIGEXPORT int SWIGSTDCALL CSharp_swig_generated_method___(void *jarg1)
{
int jresult; //SWIG generated
*// inject code here like mutex begin*
/*
SWIG generated code
*/
jresult = result;
*// inject code here like mutex end*
return jresult;
}
Best regards,
Prajjwal
_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user