Staging
v0.5.1
https://github.com/python/cpython
Revision 575d7f3f3f66de5a0d8ec69e1cab5cc55bd81f6c authored by Guido van Rossum on 13 April 2001, 15:04:31 UTC, committed by Guido van Rossum on 13 April 2001, 15:04:31 UTC
1 parent 9ea60c5
Raw File
Tip revision: 575d7f3f3f66de5a0d8ec69e1cab5cc55bd81f6c authored by Guido van Rossum on 13 April 2001, 15:04:31 UTC
Oops. Need an extra blank line after the PSF license.
Tip revision: 575d7f3
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