diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-06-06 15:29:42 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-06-06 15:29:42 -0400 |
commit | 5f236d558aa37918f0286383ba9489a550283d7f (patch) | |
tree | e0b772d6526594a8c737949cae2d5e636fdba876 /include | |
parent | 760a22318663896b2ebd76d8d3213dcc9e9bcfe5 (diff) |
libsyscall.a source
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 |