Initial commit

This commit is contained in:
2025-03-31 18:05:17 +02:00
commit 336ef95c3f
10 changed files with 197 additions and 0 deletions

18
haxcc.h Normal file
View 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