Skip to content

Commit fa4a69b

Browse files
committed
Add chsrc_alert2()
1 parent b8d8ceb commit fa4a69b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/framework/core.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ ProgStatus =
172172
#define bdyellow(str) xy_str_to_bold(xy_str_to_yellow(str))
173173
#define bdpurple(str) xy_str_to_bold(xy_str_to_purple(str))
174174

175-
// 2系列都是带有括号的
175+
/* 2系列都是带有括号的 */
176176
#define chsrc_succ2(str) xy_succ_brkt(App_Name,ENGLISH?"SUCCEED":"成功",str)
177177
#define chsrc_log2(str) xy_info_brkt(App_Name,"LOG",str)
178178
#define chsrc_warn2(str) xy_warn_brkt(App_Name,ENGLISH?"WARN":"警告",str)
@@ -184,13 +184,27 @@ ProgStatus =
184184
#endif
185185
#define chsrc_verbose2(str) xy_info_brkt(App_Name,"VERBOSE",str)
186186

187+
/**
188+
* @note 输出在 stdout 中
189+
*/
187190
void
188191
chsrc_note2 (const char *str)
189192
{
190193
char *msg = ENGLISH ? "NOTE" : "提示";
194+
xy_log_brkt (blue(App_Name), bdblue(msg), blue(str));
195+
}
196+
197+
/**
198+
* @note 输出在 stdout 中
199+
*/
200+
void
201+
chsrc_alert2 (const char *str)
202+
{
203+
char *msg = ENGLISH ? "ALERT" : "提醒";
191204
xy_log_brkt (yellow(App_Name), bdyellow(msg), yellow(str));
192205
}
193206

207+
194208
void
195209
chsrc_log_write (const char *filename)
196210
{

0 commit comments

Comments
 (0)