<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:12pt"><div>Hello,<br><br>I'm wrapping a large C++ library using boost and py++.&nbsp; The C++ library does not use exceptions.&nbsp; Instead, it uses a more C style of error checking where you need to call a set of error APIs after each call to check to see if an error occurred.<br><br>Using SWIG, you can add error checking code to each wrapped function or method by using the %exception directive.&nbsp; This instructs the code generator to add the same error checking routine to each wrapper.<br><br>Does anyone know of a similar way to do this with boost or py++?<br><br>I've found where I can add a custom exception translator.&nbsp; However, this doesn't really apply since this library doesn't generate exceptions.&nbsp; I've also found where I can add custom code for a specific function.&nbsp;&nbsp; This isn't
 ideal either due to the fact that the library is very large.<br><br>Is there a way to do this on a more "global" basis?&nbsp; The error checking code is identical every time you call it.<br><br>Any sugessions are greatly appreciated.&nbsp; Thanks in advance,<br><br>Jeff<br></div></div><br>
      <hr size=1>Be a better Globetrotter. <a href="http://us.rd.yahoo.com/evt=48254/*http://answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545469">Get better travel answers </a>from someone who knows.<br>Yahoo! Answers - Check it out.

</body></html>