feat: added support for constructors/desctructors
This commit is contained in:
@@ -5,6 +5,18 @@
|
||||
#ifndef YAK_PLATFORM_H
|
||||
#define YAK_PLATFORM_H
|
||||
|
||||
#if __x86_64__ || __x86_64
|
||||
#define HAS_INIT
|
||||
#endif
|
||||
|
||||
#ifdef HAS_INIT
|
||||
void _init();
|
||||
void _fini();
|
||||
#else
|
||||
#define _init
|
||||
#define _fini
|
||||
#endif
|
||||
|
||||
void platform_init();
|
||||
|
||||
void __attribute__((noreturn)) halt_forever();
|
||||
|
||||
Reference in New Issue
Block a user