You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
205 B
12 lines
205 B
|
8 years ago
|
#pragma once
|
||
|
|
|
||
|
|
#include <assert.h>
|
||
|
|
#include <stdio.h>
|
||
|
|
#include <stdlib.h>
|
||
|
|
|
||
|
|
#define ASSERT(x) \
|
||
|
|
if (!(x)) { \
|
||
|
|
fprintf(stderr, "Assertion failed in %s:%d: %s\n", __FILE__, __LINE__, #x); \
|
||
|
|
abort(); \
|
||
|
|
}
|