Added Swig_contract_assert

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5336 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-11-18 20:58:56 +00:00
commit 0b75c636c4

View file

@ -48,6 +48,10 @@ extern "C" {
#define SWIG_croak(x) { if ((_swigerr = (const char *) x)) goto fail; }
#define SWIG_MAX_ERRMSG 256
/* Contract support */
#define SWIG_contract_assert(expr,msg) if (!(expr)) { SWIG_croak(msg); } else
/* Note: SwigMagicFuncHack is a typedef used to get the C++
compiler to just shut up already */