2 * assert.c - diagnostics
10 #include <minix/sysutil.h>
13 __assert13(file
, line
, function
, failedexpr
)
14 const char *file
, *function
, *failedexpr
;
17 (void)printf("%s:%d: assert \"%s\" failed", file
, line
, failedexpr
);
18 if(function
) printf(", function \"%s\"", function
);
20 panic("assert failed");
25 __assert(file
, line
, failedexpr
)
26 const char *file
, *failedexpr
;
30 __assert13(file
, line
, NULL
, failedexpr
);