> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.75 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 x86_64 GNU/Linux 17:39:48 up 3:15, 2 users, load average: 0.44, 0.67, 1.30
This commit is contained in:
parent
c9306cab5b
commit
59a4c87ed5
1 changed files with 3 additions and 3 deletions
|
@ -21,15 +21,15 @@
|
|||
#include <utils.h>
|
||||
|
||||
#define Log(format, ...) \
|
||||
_Log(ANSI_FMT("%s:%d %s [INFO]" format, ANSI_FG_BLUE) "\n", \
|
||||
_Log(ANSI_FMT("[INFO] %s:%d %s" format, ANSI_FG_BLUE) "\n", \
|
||||
__FILE__, __LINE__, __func__, ## __VA_ARGS__)
|
||||
|
||||
#define Warning(format, ...) \
|
||||
_Log(ANSI_FMT("%s:%d %s [WARNING]" format, ANSI_FG_YELLOW) "\n", \
|
||||
_Log(ANSI_FMT("[WARNING] %s:%d %s" format, ANSI_FG_YELLOW) "\n", \
|
||||
__FILE__, __LINE__, __func__, ## __VA_ARGS__)
|
||||
|
||||
#define Error(format, ...) \
|
||||
_Log(ANSI_FMT("%s:%d %s [ERROR] " format, ANSI_FG_RED) "\n", \
|
||||
_Log(ANSI_FMT("[ERROR] %s:%d %s" format, ANSI_FG_RED) "\n", \
|
||||
__FILE__, __LINE__, __func__, ## __VA_ARGS__)
|
||||
|
||||
#define Assert(cond, format, ...) \
|
||||
|
|
Loading…
Reference in a new issue