Staging
v0.5.1
https://github.com/python/cpython
Revision e5ca6c71cd4a27f855612aeb14e600712cf72e04 authored by Tim Peters on 05 September 2001, 04:33:11 UTC, committed by Tim Peters on 05 September 2001, 04:33:11 UTC
1 parent 6fd0f0a
Raw File
Tip revision: e5ca6c71cd4a27f855612aeb14e600712cf72e04 authored by Tim Peters on 05 September 2001, 04:33:11 UTC
loghelper(): Try to nudge the compiler into doing mults in an order that
Tip revision: e5ca6c7
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