e4a733d5b2
git-subtree-dir: externals/biscuit git-subtree-split: 1d53c9e6cfe56544982200a5bac15a5de064936b
14 lines
670 B
C++
14 lines
670 B
C++
#pragma once
|
|
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
|
|
#define BISCUIT_ASSERT(condition) \
|
|
do { \
|
|
if (!(condition)) { \
|
|
std::printf("Assertion failed (%s)\nin %s, function %s line %i\n", \
|
|
#condition, \
|
|
__FILE__, __func__, __LINE__); \
|
|
std::abort(); \
|
|
} \
|
|
} while (false)
|