debug.cpp
来自「linux中的源代码查看工具,可以生成chm文件,并能处理源代码中的相关性.」· C++ 代码 · 共 25 行
CPP
25 行
#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include "debug.h"static int s_debugLevel = 0;void debug(int level,const char *msg,...){ if (level<=s_debugLevel) { va_list args; va_start(args, msg); vfprintf(stderr, msg, args); va_end(args); }}void setDebugLevel(int level){ s_debugLevel = level;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?