diff options
| author | red031000 <rubenru09@aol.com> | 2020-06-07 17:28:17 +0100 |
|---|---|---|
| committer | red031000 <rubenru09@aol.com> | 2020-06-07 17:28:17 +0100 |
| commit | 1c7bd60010bb429bd6cbcfad889bef9e7058cb89 (patch) | |
| tree | fff29ec53e2f943ea73c977e1870c10b985dbd19 /include | |
| parent | 292a0f16f5492c0b89b11f4eec9bc8397874f9f0 (diff) | |
| parent | c2d3d0fb118d3f9ff14f8f5293f54d0c37421a70 (diff) | |
Merge branch 'master' of https://github.com/martmists/pokediamond
Diffstat (limited to 'include')
| -rw-r--r-- | include/nitro/types.h | 2 | ||||
| -rw-r--r-- | include/sinit.h | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/nitro/types.h b/include/nitro/types.h index 190d9eae..dfa5ba87 100644 --- a/include/nitro/types.h +++ b/include/nitro/types.h @@ -54,4 +54,6 @@ typedef int BOOL; #endif // __cplusplus #endif +#define SDK_FORCE_EXPORT __declspec(force_export) + #endif //POKEDIAMOND_TYPES_H diff --git a/include/sinit.h b/include/sinit.h new file mode 100644 index 00000000..47fe4438 --- /dev/null +++ b/include/sinit.h @@ -0,0 +1,10 @@ +#ifndef GUARD_SINIT_H +#define GUARD_SINIT_H + +static void NitroStaticInit(void); +#pragma define_section SINIT ".sinit" abs32 RWX +#pragma section SINIT begin +SDK_FORCE_EXPORT static void (*NitroStaticInit_[])(void) = { NitroStaticInit }; +#pragma section SINIT end + +#endif //GUARD_SINIT_H |
