diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-12-04 03:18:48 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-12-04 03:18:48 (GMT) |
commit | 1ca12961579c6a27597fc95b610b01af37734827 (patch) | |
tree | ada4e6065f27ec8f8260a8799009188913abcd87 /Parser/assert.h | |
parent | db5a93cd6adcdf21ade2d7299a42cbeb475e656f (diff) | |
download | cpython-1ca12961579c6a27597fc95b610b01af37734827.zip cpython-1ca12961579c6a27597fc95b610b01af37734827.tar.gz cpython-1ca12961579c6a27597fc95b610b01af37734827.tar.bz2 |
The parser doesn't need its own implementation of assert, and having its
own interfered with including Python.h. Remove Python's assert.h.
Diffstat (limited to 'Parser/assert.h')
-rw-r--r-- | Parser/assert.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Parser/assert.h b/Parser/assert.h deleted file mode 100644 index d4ed72c..0000000 --- a/Parser/assert.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef Py_ASSERT_H -#define Py_ASSERT_H -#ifdef __cplusplus -extern "C" { -#endif - - -#ifdef MPW /* This is for MPW's File command */ - -#define assert(e) { if (!(e)) { printf("### Python: Assertion failed:\n\ - File %s; Line %d\n", __FILE__, __LINE__); abort(); } } -#else -#define assert(e) { if (!(e)) { printf("Assertion failed\n"); abort(); } } -#endif - -#ifdef __cplusplus -} -#endif -#endif /* !Py_ASSERT_H */ |