From b22d5729d49455fb126b8d04a12aefc89ce79571 Mon Sep 17 00:00:00 2001 From: Coldy Date: Tue, 8 Feb 2022 14:04:23 +0000 Subject: [PATCH] cmm lib: prepare to autoimport git-svn-id: svn://kolibrios.org@9701 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/lib/kolibri.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/programs/cmm/lib/kolibri.h b/programs/cmm/lib/kolibri.h index 7e405ffd98..46c036861d 100644 --- a/programs/cmm/lib/kolibri.h +++ b/programs/cmm/lib/kolibri.h @@ -39,6 +39,7 @@ dword I_Path = #__path; #define param __argv #define program_path __path +#define ______INIT______ start #endif #define bool int @@ -665,11 +666,7 @@ inline fastcall dword GetStartTime() dword __generator; // random number generator init //The initialization of the initial data before running -//#ifdef __COFF__ -//void start() -//#else :void ______INIT______() -//#endif { skin_h = @GetSkinHeight(); screen.w = @GetScreenWidth()+1; @@ -680,8 +677,14 @@ dword __generator; // random number generator init #endif main(); } + +#ifdef __COFF__ +@ void start(); +#undef ______INIT______ +#else ______STOP______: #endif +#endif #ifndef INCLUDE_MEM_H #include "../lib/mem.h"