debug 开关
来源:互联网 发布:saas 系统架构源码 编辑:程序博客网 时间:2024/04/27 18:04
#ifndef _TRACE_
#define _TRACE_
#include <string>
using namespace std;
#define _TRACE_
#include <string>
using namespace std;
#define DEBUG_SWITCH //调试开关 调试时打开 不用时关闭就OK了
#ifdef DEBUG_SWITCH
void display(const string&); //调试语句放在此处
#else
void display(const string&);
#endif
#ifdef DEBUG_SWITCH
void display(const string&); //调试语句放在此处
#else
void display(const string&);
#endif
#endif _TRACE_
#include "trace.h"
#include <iostream>
#include <iostream>
string ssexport("message");
#ifdef DEBUG_SWITCH
void display(const string&) {
cout << "debug information " << ssexport <<endl;
}
#else
void display(const string&) {
cout << "normal information " << ssexport <<endl;
}
#endif
#ifdef DEBUG_SWITCH
void display(const string&) {
cout << "debug information " << ssexport <<endl;
}
#else
void display(const string&) {
cout << "normal information " << ssexport <<endl;
}
#endif
void main() {
display(ssexport);
return;
}
display(ssexport);
return;
}
- debug 开关
- java debug开关
- linux debug开关 dev_dbg
- DEBUG宏开关调试
- lanswich交换机debug信息开关
- 笔记之:log Debug开关
- <Eclipse>调试开关Run/Debug
- 通过CMake实现debug开关
- 日志组件之debug动态开关
- 日志组件之debug动态开关
- 如何打开ActivityManagerService的debug开关?
- debug 打印 开关 设计(for c || C++)
- settings中的developeroptions的开关打开,debug关掉
- 通过暗码去打开/关闭usb debug开关
- ANSI Debug 与Unicode Debug版本同时支持的VS2008编译开关的设置
- 开关
- 开关
- VC编译开关选项分析(debug和release版本的对比)
- Python字符串操作
- 邮箱GUI 测试用例(word制写法)
- 态度决定一切
- 转载—jdbc插入主从表时,如何取回主表id。以及对oracle的改进
- 基于OpenCV的小程序:从摄像头录制视频并保存
- debug 开关
- linux tput 命令
- Linux下提高硬盘读写速度
- linux内存管理
- SWOT战略分析,做综合权衡
- 第13周任务3(定义抽象基类Shape,由它派生出3个派生类,Circle(圆形)、Rectangle(矩形)、Triangle(三角形))
- asp.net web page执行顺序
- extern用法:
- 测试流程、测试理论、测试用例设计方法