📄 common.cc
字号:
#include <stdlib.h>#include <stdio.h>#include <memory.h>#ifdef WIN32#include <windows.h>#endif // WIN32#include <algorithm>#include "common.h"//////////////////////////////////////////////////////////////////////// Assertions//////////////////////////////////////////////////////////////////////namespace utils_base {void Break() {#ifdef WIN32 ::DebugBreak();#else // !WIN32#if _DEBUG_HAVE_BACKTRACE OutputTrace();#endif abort();#endif // !WIN32}void LogAssert(const char * function, const char * file, int line, const char * expression) { // TODO - if we put hooks in here, we can do a lot fancier logging fprintf(stderr, "%s(%d): %s @ %s\n", file, line, expression, function);}} // namespace utils_base
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -