The standard libc assert is more familiar to programmers, renders more useful
debugging messages, and is more easily toggled with NDEBUG.
* Contributors: Details at https://graphviz.org
*************************************************************************/
+#include <assert.h>
#include <sfio/sfhdr.h>
#include <stddef.h>
}
} else {
f->mode &= ~SF_LOCK;
- /**/ ASSERT(_Sfpmove);
+ assert(_Sfpmove);
if ((*_Sfpmove) (f, -1) < 0) {
SFOPEN(f, 0);
SFMTXRETURN(f, -1);
#define SF_AVAIL 00020000u /* was closed, available for reuse */
#define SF_LOCAL 00100000u /* sentinel for a local call */
-#ifdef DEBUG
-#define ASSERT(p) ((p) ? 0 : (abort(),0) )
-#else
-#define ASSERT(p)
-#endif
-
/* short-hands */
#define NIL(t) ((t)0)
#ifndef uchar