Fix PANIC macro

This commit is contained in:
Fabio Scotto di Santolo
2025-12-19 16:15:50 +01:00
parent f71bfa68f6
commit a89597d35c
3 changed files with 8 additions and 6 deletions

View File

@@ -13,12 +13,6 @@
#define offsetof(type, member) ((size_t)&(((type*)0)->member))
#define PANIC(fmt, ...) \
do { \
printf("panic %s:%d" fmt "\n", __FILE__, __LINE__, ## __VAR_ARGS__); \
while(1){}; \
} while(0)
typedef int bool;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t ;