From 99638b9fff0a5ea85557b5cc7ff85367a65b97b3 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 10 Jul 2025 02:17:32 +0200 Subject: refactor: Small codebase refactor and cleanup. Signed-off-by: Amlal El Mahrouss --- dev/LibCompiler/Defines.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dev/LibCompiler') diff --git a/dev/LibCompiler/Defines.h b/dev/LibCompiler/Defines.h index 1e1d4d9..602814b 100644 --- a/dev/LibCompiler/Defines.h +++ b/dev/LibCompiler/Defines.h @@ -149,7 +149,8 @@ inline bool install_signal(Int32 signal, void (*handler)(int)) noexcept { } } // namespace LibCompiler -#define PACKED __attribute__((packed)) +#define ATTRIBUTE(X) __attribute__((X)) +#define PACKED ATTRIBUTE(packed) typedef char char_type; @@ -159,7 +160,7 @@ typedef char char_type; #define kAsmFileExts \ { ".64x", ".32x", ".masm", ".s", ".S", ".asm", ".x64" } -#define kAsmFileExtsMax 7 +#define kAsmFileExtsMax (7U) #define LIBCOMPILER_MODULE(name) extern "C" int name(int argc, char** argv) -- cgit v1.2.3