Added Ruby module runtime support for SWIG_contract_assert() macro.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5328 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
28209b817e
commit
40cb2afe0d
1 changed files with 4 additions and 0 deletions
|
|
@ -106,3 +106,7 @@ typedef struct {
|
|||
#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
|
||||
#endif
|
||||
|
||||
/* Contract support */
|
||||
|
||||
#define SWIG_contract_assert(expr, msg) if (!(expr)) { rb_raise(rb_eRuntimeError, (char *) msg ); } else
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue