retire 64-bit conversion functions
[minix3.git] / lib / libsys / assert.c
blobe70f4c5ec1c699a77a4ebfba98ce49cc9e8819ad
1 /*
2 * assert.c - diagnostics
3 */
5 #include <assert.h>
6 #include <stdio.h>
8 #include <sys/types.h>
9 #include <stdlib.h>
10 #include <minix/sysutil.h>
12 void
13 __assert13(file, line, function, failedexpr)
14 const char *file, *function, *failedexpr;
15 int line;
17 (void)printf("%s:%d: assert \"%s\" failed", file, line, failedexpr);
18 if(function) printf(", function \"%s\"", function);
19 printf("\n");
20 panic("assert failed");
21 /* NOTREACHED */
24 void
25 __assert(file, line, failedexpr)
26 const char *file, *failedexpr;
27 int line;
30 __assert13(file, line, NULL, failedexpr);
31 /* NOTREACHED */