Sony PlayStation2 Study
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
485 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. assert.h
  3. */
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #include "_ansi.h"
  8. #undef assert
  9. #ifdef NDEBUG /* required by ANSI standard */
  10. #define assert(p) ((void)0)
  11. #else
  12. #ifdef __STDC__
  13. #define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
  14. #else /* PCC */
  15. #define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
  16. #endif
  17. #endif /* NDEBUG */
  18. void _EXFUN(__assert,(const char *, int, const char *));
  19. #ifdef __cplusplus
  20. }
  21. #endif