mirror of
https://github.com/Ed94/perfaware.git
synced 2026-08-14 11:28:08 +00:00
22 lines
381 B
C
22 lines
381 B
C
#ifdef INTELLISENSE_DIRECTIVES
|
|
# pragma once
|
|
# include "dsl.h"
|
|
# if _WIN32
|
|
# include "win32.h"
|
|
# endif
|
|
#endif
|
|
|
|
#pragma region Debug
|
|
#define debug_trap() __builtin_debugtrap()
|
|
|
|
#if BUILD_DEBUG
|
|
FI_ void assert(U8 cond);
|
|
#else
|
|
#define assert(cond)
|
|
#endif
|
|
|
|
#define trap() __builtin_trap()
|
|
|
|
#define assert_always(x) do { if((x) == false) {trap();} } while(0)
|
|
#pragma endregion Debug
|