Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: 841815e2b244725c54225aaaf5965704a461ca7c authored by cvs2svn on 09 October 2000, 23:43:55 UTC
This commit was manufactured by cvs2svn to create tag 'r20c1'.
Tip revision: 841815e
assert.h
#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 */
back to top