15 lines
261 B
C

#ifndef TEST_H
#define TEST_H
#include <stdio.h>
#include <stdlib.h>
#define ASSERT(cond) {\
if (!(cond)) {\
fprintf(stderr, "Assertion Failed @ %s:%d (%s): %s", __func__, __LINE__, __FILE__, #cond);\
exit(EXIT_FAILURE);\
}\
}
#endif