Code formatting
This commit is contained in:
10
haxcc.h
10
haxcc.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user