mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-01 20:24:36 +01:00
Squashed 'externals/biscuit/' content from commit 1d53c9e6
git-subtree-dir: externals/biscuit git-subtree-split: 1d53c9e6cfe56544982200a5bac15a5de064936b
This commit is contained in:
commit
e4a733d5b2
55 changed files with 40248 additions and 0 deletions
14
include/biscuit/assert.hpp
Normal file
14
include/biscuit/assert.hpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue