10 lines
227 B
C
10 lines
227 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#define assert(X) do { if (!(X)) {\
|
||
|
printf("Assertion failed: '%s', file %s, function %s, line %d\n", #X, __FILE__, __FUNCTION__, __LINE__); \
|
||
|
exit(-1); } } while (0)
|
||
|
|