diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-10 02:17:32 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-10 02:17:32 +0200 |
| commit | 99638b9fff0a5ea85557b5cc7ff85367a65b97b3 (patch) | |
| tree | de8846bc94fd6197d16eb7551279d9b27680338b /dev/LibCompiler | |
| parent | 3b237c1db6d44f6d813c210203dbaf7ad9b92a8c (diff) | |
refactor: Small codebase refactor and cleanup.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler')
| -rw-r--r-- | dev/LibCompiler/Defines.h | 5 |
1 files changed, 3 insertions, 2 deletions
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) |
