base_types.cpp
来自「hl2 source code. Do not use it illegal.」· C++ 代码 · 共 23 行
CPP
23 行
#include <hk_base/base.h>
void hk_assert(bool test, const char* cond, int line, const char* file)
{
if (test==false)
{
hk_Console::get_instance()->printf("%s:%i: assertion failed : '%s'\n", file, line, cond);
hk_Console::get_instance()->flush();
HK_BREAK;
}
}
void hk_check(bool test, const char* cond, int line, const char* file)
{
if (test==false)
{
hk_Console::get_instance()->printf("%s(%i): check failed : '%s'\n", file, line, cond);
hk_Console::get_instance()->flush();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?