main
 1#ifndef KC_HEADER_PLATFORM_ASSERT_INCLUDED
 2#define KC_HEADER_PLATFORM_ASSERT_INCLUDED
 3
 4#include "../platform/types.h"
 5
 6#if defined(KC_COMPILER_CLANG) || defined(KC_COMPILER_GCC) || defined(KC_COMPILER_TCC)
 7	#define assert(condition) do{ if(!(condition)) __builtin_trap(); }while(0)
 8#elif defined(KC_COMPILER_MSVC)
 9	#include <intrin.h>
10
11	#define assert(condition) do{ if(!(condition)) __debugbreak(); }while(0);
12#else
13	#error Unsupported compiler.
14#endif
15
16#endif