aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorTiger Feng <songyanf@cs.uchicago.edu>2003-05-21 21:17:23 +0000
committerTiger Feng <songyanf@cs.uchicago.edu>2003-05-21 21:17:23 +0000
commit6cdd4ee644c3365b5e4a7f49585434d0cd487fc9 (patch)
treeaff4e2ec171778039a6e26026d35f1b82c7c369a /Lib
parent91048279ba42c304df5ae30370c64efd8a4b4bdf (diff)
downloadswig-6cdd4ee644c3365b5e4a7f49585434d0cd487fc9.tar.gz
contract: SWIG_assertion(expr) for python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4808 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib')
-rw-r--r--Lib/python/pyrun.swg4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg
index 6ce5f656e..2970b345e 100644
--- a/Lib/python/pyrun.swg
+++ b/Lib/python/pyrun.swg
@@ -409,7 +409,9 @@ SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
#define SWIG_preassert(x) if (!(x)) { PyErr_SetString(PyExc_RuntimeError, "preassertion failure: " #x); goto fail; } else
#define SWIG_postassert(x) if (!(x)) { PyErr_SetString(PyExc_RuntimeError, "postassertion failure: " #x); goto fail; } else
-#define SWIG_invarassert(x) if (!(x)) { PyErr_SetString(PyExc_RuntimeError, "invariant failure: " #x); goto fail; } else
+#define SWIG_invariant(x) if (!(x)) { PyErr_SetString(PyExc_RuntimeError, "invariant failure: " #x); goto fail; } else
+#define SWIG_invariant_begin(x) if (!(x)) { PyErr_SetString(PyExc_RuntimeError, "invariant failure at begining: " #x); goto fail; } else
+#define SWIG_invariant_end(x) if (!(x)) { PyErr_SetString(PyExc_RuntimeError, "invariant failure at ending: " #x); goto fail; } else
#ifdef __cplusplus
}