[pypy-svn] r25308 - pypy/branch/explicit-exceptions/translator/c/src
mwh at codespeak.net
mwh at codespeak.net
Tue Apr 4 18:40:33 CEST 2006
Author: mwh
Date: Tue Apr 4 18:40:31 2006
New Revision: 25308
Modified:
pypy/branch/explicit-exceptions/translator/c/src/support.h
Log:
change the CFAIL macro to make using it less likely to be a syntax error
Modified: pypy/branch/explicit-exceptions/translator/c/src/support.h
==============================================================================
--- pypy/branch/explicit-exceptions/translator/c/src/support.h (original)
+++ pypy/branch/explicit-exceptions/translator/c/src/support.h Tue Apr 4 18:40:31 2006
@@ -16,7 +16,7 @@
#define FAIL_OVF(msg) FAIL_EXCEPTION(PyExc_OverflowError, msg)
#define FAIL_VAL(msg) FAIL_EXCEPTION(PyExc_ValueError, msg)
#define FAIL_ZER(msg) FAIL_EXCEPTION(PyExc_ZeroDivisionError, msg)
-#define CFAIL() { RPyConvertExceptionFromCPython(); }
+#define CFAIL() RPyConvertExceptionFromCPython()
#define PyString_FromLLCharArrayAndSize(itemsarray, size) \
PyString_FromStringAndSize(itemsarray->items, size)
More information about the Pypy-commit
mailing list