Initial commit
This commit is contained in:
18
haxcc.h
Normal file
18
haxcc.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef HAXCC_H
|
||||
#define HAXCC_H
|
||||
|
||||
#define HAX_MOD(name) \
|
||||
static const struct mod name __attribute__((used, section("__haxmod")))
|
||||
|
||||
typedef int (*init_fn)(void);
|
||||
typedef int (*done_fn)(void);
|
||||
|
||||
typedef struct mod {
|
||||
init_fn init;
|
||||
done_fn done;
|
||||
} mod;
|
||||
|
||||
mod* mod_begin(void);
|
||||
mod* mod_end(void);
|
||||
|
||||
#endif // HAXCC_H
|
||||
Reference in New Issue
Block a user