mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +01:00
Add warning macro
This commit is contained in:
parent
60829984c7
commit
b6db22bcc4
7
utils.hh
7
utils.hh
@ -18,6 +18,13 @@
|
||||
exit(1); \
|
||||
} while(0)
|
||||
|
||||
#define warning(x...) do \
|
||||
{ \
|
||||
fprintf(stderr, "==============WARNING WARNING============\n"); \
|
||||
fprintf(stderr, x); \
|
||||
fprintf(stderr, "=========================================\n"); \
|
||||
} while(0)
|
||||
|
||||
#define panic_if(cond, x...) \
|
||||
do { if ((cond)) panic(x); } while(0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user