cmm lib: prepare to autoimport

git-svn-id: svn://kolibrios.org@9701 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Coldy 2022-02-08 14:04:23 +00:00
parent a5713e0f60
commit b22d5729d4

View File

@ -39,6 +39,7 @@ dword I_Path = #__path;
#define param __argv #define param __argv
#define program_path __path #define program_path __path
#define ______INIT______ start
#endif #endif
#define bool int #define bool int
@ -665,11 +666,7 @@ inline fastcall dword GetStartTime()
dword __generator; // random number generator init dword __generator; // random number generator init
//The initialization of the initial data before running //The initialization of the initial data before running
//#ifdef __COFF__
//void start()
//#else
:void ______INIT______() :void ______INIT______()
//#endif
{ {
skin_h = @GetSkinHeight(); skin_h = @GetSkinHeight();
screen.w = @GetScreenWidth()+1; screen.w = @GetScreenWidth()+1;
@ -680,8 +677,14 @@ dword __generator; // random number generator init
#endif #endif
main(); main();
} }
#ifdef __COFF__
@ void start();
#undef ______INIT______
#else
______STOP______: ______STOP______:
#endif #endif
#endif
#ifndef INCLUDE_MEM_H #ifndef INCLUDE_MEM_H
#include "../lib/mem.h" #include "../lib/mem.h"