Code formatting

This commit is contained in:
2025-04-04 22:06:22 +02:00
parent 389eecfd73
commit e3497e315c
3 changed files with 13 additions and 4 deletions

10
haxcc.h
View File

@@ -12,8 +12,14 @@ typedef struct mod {
done_fn done;
} mod;
#define HAX_MOD(name) \
static const struct mod name __attribute__((used, section("__haxmod"), aligned(__alignof__(struct mod))))
// Define a macro to place a 'mod' struct into a special section called '__haxmod'
#define HAX_MOD(name) \
static const struct mod name \
__attribute__(( \
used, \
section("__haxmod"), \
aligned(__alignof__(struct mod)) \
))
mod* mod_begin(void);
mod* mod_end(void);