ack/lang/basic/lib/asrt.c

13 lines
135 B
C
Raw Permalink Normal View History

2016-12-12 20:15:25 +00:00
#include <stdio.h>
#include <stdlib.h>
#include "lib.h"
1984-11-29 14:22:02 +00:00
2016-12-12 20:15:25 +00:00
void asrt(int b)
1984-11-29 14:22:02 +00:00
{
if (!b)
{
1984-11-29 14:22:02 +00:00
printf("ASSERTION ERROR\n");
abort();
}
}