Staging
v0.5.1
https://github.com/python/cpython
Revision 807e70101e1ed3ad41b169895497a3a5789c8e63 authored by Jack Jansen on 01 March 2001, 23:18:31 UTC, committed by Jack Jansen on 01 March 2001, 23:18:31 UTC
- Imaging and Numeric are now also available under Carbon.
1 parent b34d0ed
Raw File
Tip revision: 807e70101e1ed3ad41b169895497a3a5789c8e63 authored by Jack Jansen on 01 March 2001, 23:18:31 UTC
- Numeric now lives in Lib:site-python.
Tip revision: 807e701
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