28 #ifndef YB_INC_ystdex_cassert_h_
29 #define YB_INC_ystdex_cassert_h_ 1
47 #define yconstraint assert
58 #define yassume assert
71 yassert(
bool,
const char*,
const char*,
int,
const char*);
73 # define YAssert(_expr, _msg) \
74 ystdex::yassert(_expr, #_expr, __FILE__, __LINE__, _msg)
77 # define YAssert(_expr, _msg) assert(exp)
81 #define YAssertNonnull(_expr) YAssert(bool(_expr), "Null pointer found.")
93 ytrace(std::FILE*, std::uint8_t, std::uint8_t, const
char*,
int, const
char*,
101 # define YTrace(_stream, _lv, _t, _msg, ...) \
102 ystdex::ytrace(_stream, _lv, _t, __FILE__, __LINE__, _msg, __VA_ARGS__)
void ytrace(std::FILE *, std::uint8_t, std::uint8_t, const char *, int, const char *,...)
YCLib 调试跟踪函数。
#define YB_API
YBase 应用程序编程接口:用于向库文件约定链接。
void yassert(bool, const char *, const char *, int, const char *)
YBase 默认断言函数。