Spider2/tests/unit.h

4 lines
186 B
C
Raw Normal View History

2024-09-01 16:12:11 +02:00
#include <stdio.h>
#include <stdlib.h>
#define chi_assert(message, test) do { if (!(test)) { fprintf(stderr, "ASSERT FAILED (line %d): %s\n", __LINE__, (message)); exit(1); } } while(0)