swig: modifying wrap function generation
Robert Kiendl
robert.kiendl at delphi2.de
Tue Jul 18 06:21:42 EDT 2000
I have to modify a lot of my exported functions in the following way:
// myapp.i
class CMyClass {
...
void NormalFunction(int par1, char* par2);
//BOOL CriticalFunction(int par1);
%addmethods {
BOOL CriticalFunction(int par1) {
CAllowThreads _t;
return self->CriticalFunction(par1);
}
}
...
}
is there a way to just mark CriticalFunction with something in order to
get extra code lines into the wrap function?
robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000718/6eb579ec/attachment.html>
More information about the Python-list
mailing list