Files for 2.1b1 distribution.
[python/dscho.git] / Parser / assert.h
blobd4ed72c006b7edb5ccfdea5e45d118303a503300
1 #ifndef Py_ASSERT_H
2 #define Py_ASSERT_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
8 #ifdef MPW /* This is for MPW's File command */
10 #define assert(e) { if (!(e)) { printf("### Python: Assertion failed:\n\
11 File %s; Line %d\n", __FILE__, __LINE__); abort(); } }
12 #else
13 #define assert(e) { if (!(e)) { printf("Assertion failed\n"); abort(); } }
14 #endif
16 #ifdef __cplusplus
18 #endif
19 #endif /* !Py_ASSERT_H */