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:
parent
d85b463e0b
commit
0b75c636c4
1 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue