이 파일의 문서화 페이지로 가기
22# define BY_E(fmt, ...) ::by::richLog(::by::errLv::ERR, __FILENAME__, __func__, __LINE__, fmt "\n", ##__VA_ARGS__)
23# define BY_W(fmt, ...) ::by::richLog(::by::errLv::WARN, __FILENAME__, __func__, __LINE__, fmt "\n", ##__VA_ARGS__)
24# define BY_I(fmt, ...) ::by::richLog(::by::errLv::INFO, __FILENAME__, __func__, __LINE__, fmt "\n", ##__VA_ARGS__)
72# define BY_E_SCOPE(fmt, ...) \
73 ::by::line::incLv(); \
74 BY_E("▶ " fmt, ##__VA_ARGS__); \
75 BY_END(scopeLog, [&](nllong elapsed) { BY_E("◀ " fmt, ##__VA_ARGS__); });
76# define BY_W_SCOPE(fmt, ...) \
77 ::by::line::incLv(); \
78 BY_W("▶ " fmt, ##__VA_ARGS__); \
79 BY_END(scopeLog, [&](nllong elapsed) { BY_W("◀ " fmt, ##__VA_ARGS__); });
80# define BY_I_SCOPE(fmt, ...) \
81 BY_I("▶ " fmt, ##__VA_ARGS__); \
82 ::by::line::incLv(); \
83 BY_END(scopeLog, [&](nllong elapsed) { BY_I("◀ " fmt, ##__VA_ARGS__); });
85# define BY_E(fmt, ...) void()
86# define BY_W(fmt, ...) void()
87# define BY_I(fmt, ...) void()
88# define BY_E_SCOPE(fmt, ...) void()
89# define BY_W_SCOPE(fmt, ...) void()
90# define BY_I_SCOPE(fmt, ...) void()
93# define BY_DE(fmt, ...) BY_E(fmt, ##__VA_ARGS__)
94# define BY_DW(fmt, ...) BY_W(fmt, ##__VA_ARGS__)
95# define BY_DI(fmt, ...) BY_I(fmt, ##__VA_ARGS__)
96# define BY_DE_SCOPE(fmt, ...) \
97 ::by::line::incLv(); \
98 BY_DE("▶ " fmt, ##__VA_ARGS__); \
99 BY_END(scopeLog, [&](nllong elapsed) { BY_DE("◀ " fmt, ##__VA_ARGS__); });
100# define BY_DW_SCOPE(fmt, ...) \
101 ::by::line::incLv(); \
102 BY_DW("▶ " fmt, ##__VA_ARGS__); \
103 BY_END(scopeLog, [&](nllong elapsed) { BY_DW("◀ " fmt, ##__VA_ARGS__); });
104# define BY_DI_SCOPE(fmt, ...) \
105 ::by::line::incLv(); \
106 BY_DI("▶ " fmt, ##__VA_ARGS__); \
107 BY_END(scopeLog, [&](nllong elapsed) { BY_DI("◀ " fmt, ##__VA_ARGS__); });
109# define BY_DE(fmt, ...) void()
110# define BY_DW(fmt, ...) void()
111# define BY_DI(fmt, ...) void()
112# define BY_DE_SCOPE(fmt, ...) void()
113# define BY_DW_SCOPE(fmt, ...) void()
114# define BY_DI_SCOPE(fmt, ...) void()
118#define BY_SIDE_FUNC_3(paramPtr, expr, ret) \
119 { return paramPtr ? expr : ret; }