Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 4f643ba5dbb3ff7e36ac1864f49c0778dc0f303d authored by cvs2svn on 05 September 2000, 20:15:25 UTC
This commit was manufactured by cvs2svn to create tag 'r20b1'.
Tip revision: 4f643ba
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