mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 08:42:24 +00:00
unix nil check won't prevent windows builds.
This commit is contained in:
parent
9292b2a7d5
commit
8d2d479664
187 changed files with 198 additions and 194 deletions
|
|
@ -266,9 +266,11 @@ extern void Modules_Init(INT32 argc, ADDRESS argv);
|
|||
extern void Heap_FINALL();
|
||||
|
||||
extern void setupAutomaticSegfaultHandler();
|
||||
|
||||
#ifndef _WIN32
|
||||
#define __INIT(argc, argv) static void *m; setupAutomaticSegfaultHandler(); Modules_Init(argc, (ADDRESS)&argv);
|
||||
|
||||
#else
|
||||
#define __INIT(argc, argv) static void *m; Modules_Init(argc, (ADDRESS)&argv);
|
||||
#endif
|
||||
#define __REGMAIN(name, enum) m = Heap_REGMOD((CHAR*)name,enum)
|
||||
#define __FINI Heap_FINALL(); return 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue