YSTest
PreAlpha_b400_20130424
The YSLib Test Project
首页
相关页面
模块
命名空间
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
Debug.h
浏览该文件的文档.
1
/*
2
Copyright by FrankHB 2012 - 2013.
3
4
This file is part of the YSLib project, and may only be used,
5
modified, and distributed under the terms of the YSLib project
6
license, LICENSE.TXT. By continuing to use, modify, or distribute
7
this file you indicate that you have read the license and
8
understand and accept it fully.
9
*/
10
28
#ifndef YCL_INC_DEBUG_H_
29
#define YCL_INC_DEBUG_H_ 1
30
31
#include "
ycommon.h
"
32
51
#ifndef NDEBUG
52
# define YCL_DEBUG_PRINTF(...) std::printf(__VA_ARGS__)
53
# define YCL_DEBUG_PUTS(_arg) std::puts(_arg)
54
#else
55
# define YCL_DEBUG_PRINTF(...)
56
# define YCL_DEBUG_PUTS(_arg)
57
#endif
58
59
60
namespace
platform
61
{
62
72
YF_API
void
73
YDebugSetStatus
(
bool
=
true
);
74
79
YF_API
bool
80
YDebugGetStatus
();
81
87
YF_API
void
88
YDebugBegin
();
89
94
YF_API
void
95
YDebug
();
100
YF_API
void
101
YDebug
(
const
char
*);
102
107
#if defined _WIN32 && !defined __USE_MINGW_ANSI_STDIO
108
YB_ATTR
(format (ms_printf, 1, 2))
109
#else
110
YB_ATTR
(format (printf, 1, 2))
111
#endif
112
YF_API
int
113
yprintf
(
const
char
*, ...);
115
116
}
// namespace platform_ex;
117
118
#endif
119
YFramework
include
YCLib
Debug.h
生成于 2013年 四月 24日 星期三 18:41:27 , 为 YSTest使用
1.8.2