2016-12-12 20:15:25 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2018-06-23 22:35:51 +00:00
|
|
|
#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
|
|
|
{
|
2016-12-12 20:16:32 +00:00
|
|
|
if (!b)
|
|
|
|
{
|
1984-11-29 14:22:02 +00:00
|
|
|
printf("ASSERTION ERROR\n");
|
|
|
|
abort();
|
|
|
|
}
|
|
|
|
}
|