> 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
 18:44:02  up 1 day  4:19,  2 users,  load average: 1.32, 1.33, 0.77
This commit is contained in:
tracer-ysyx 2024-02-08 18:44:02 +08:00 committed by xinyangli
parent 375772441d
commit cb13d4d6f8

View file

@ -21,15 +21,15 @@
#include <utils.h> #include <utils.h>
#define Log(format, ...) \ #define Log(format, ...) \
_Log(ANSI_FMT("[INFO] %s:%d %s" format, ANSI_FG_BLUE) "\n", \ _Log(ANSI_FMT("[INFO] %s:%d %s " format, ANSI_FG_BLUE) "\n", \
__FILE__, __LINE__, __func__, ## __VA_ARGS__) __FILE__, __LINE__, __func__, ## __VA_ARGS__)
#define Warning(format, ...) \ #define Warning(format, ...) \
_Log(ANSI_FMT("[WARNING] %s:%d %s" format, ANSI_FG_YELLOW) "\n", \ _Log(ANSI_FMT("[WARNING] %s:%d %s " format, ANSI_FG_YELLOW) "\n", \
__FILE__, __LINE__, __func__, ## __VA_ARGS__) __FILE__, __LINE__, __func__, ## __VA_ARGS__)
#define Error(format, ...) \ #define Error(format, ...) \
_Log(ANSI_FMT("[ERROR] %s:%d %s" format, ANSI_FG_RED) "\n", \ _Log(ANSI_FMT("[ERROR] %s:%d %s " format, ANSI_FG_RED) "\n", \
__FILE__, __LINE__, __func__, ## __VA_ARGS__) __FILE__, __LINE__, __func__, ## __VA_ARGS__)
#define Assert(cond, format, ...) \ #define Assert(cond, format, ...) \