?? dbg.h
字號(hào):
// dbg.h: The debug header file.
#ifndef __DBG_H__
#define __DBG_H__
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
#ifdef _DEBUG
static void __dbg_printf (const char * format,...)
{
#define MAX_DBG_MSG_LEN (1024)
char buf[MAX_DBG_MSG_LEN];
va_list ap;
va_start(ap, format);
_vsnprintf(buf, sizeof(buf), format, ap);
OutputDebugString(buf);
va_end(ap);
}
#define DBG __dbg_printf
#else
static void __dbg_printf (const char * format,...) {}
#define DBG 1?((void)(NULL)):__dbg_printf
#endif
#define _FLP_ "%s:%d: "
#define _FL_ __FUNC__, __LINE__
#define _FFLP_ "%s:" _FLP_
#define _FFL_ __FILE__, _FL_
// For example:
// DBG(_FLP_ "format string", _FL_, arg1, arg2);
// DBG(_FFLP_ "format string", _FFL, arg1, arg2);
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -