If an old port is resurrected to work with current version code, its files can be relocated to the appropriate sys or win folder as required. In the meantime, the burden of upkeep can be avoided for the stuff in the outdated folder for now.
18 lines
241 B
C
18 lines
241 B
C
/***
|
|
*assert.h - define the assert macro
|
|
*
|
|
****/
|
|
|
|
#undef assert
|
|
|
|
#ifdef NDEBUG
|
|
|
|
#define assert(exp) ((void) 0)
|
|
|
|
#else
|
|
|
|
#define assert(exp) \
|
|
(void)((exp) || (panic("%s at %s line %ld", #exp, __FILE__, __LINE__), 1))
|
|
|
|
#endif /* NDEBUG */
|