From fc4e813d9a96a60bf57176c8696bea22bbde70d2 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Thu, 22 Apr 2004 10:46:45 +0000 Subject: [PATCH] memory manager support g_FakeMeta global global natives declared extern "C" (because .C files changed to .cpp) --- amxmodx/amxmodx.h | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/amxmodx/amxmodx.h b/amxmodx/amxmodx.h index 85e61f2f..689c44a4 100755 --- a/amxmodx/amxmodx.h +++ b/amxmodx/amxmodx.h @@ -32,6 +32,15 @@ #ifndef AMXMODX_H #define AMXMODX_H + +#include "string.h" +#include +#include + +#ifdef MEMORY_TEST +#include "mmgr/mmgr.h" +#endif + #include "CVector.h" #include "CList.h" #include "modules.h" @@ -46,18 +55,13 @@ #include "CCmd.h" #include "CMenu.h" #include "CEvent.h" +#include "FakeMeta.h" -#define AMX_VERSION "2.0" +#define AMX_VERSION "0.2" -#ifdef __cplusplus -extern "C" { -#endif - extern AMX_NATIVE_INFO core_Natives[]; - extern AMX_NATIVE_INFO time_Natives[]; - extern AMX_NATIVE_INFO power_Natives[]; -#ifdef __cplusplus -} -#endif +extern AMX_NATIVE_INFO core_Natives[]; +extern AMX_NATIVE_INFO time_Natives[]; +extern AMX_NATIVE_INFO power_Natives[]; extern AMX_NATIVE_INFO amxmod_Natives[]; extern AMX_NATIVE_INFO file_Natives[]; extern AMX_NATIVE_INFO float_Natives[]; @@ -104,7 +108,7 @@ void UTIL_ShowMenu( edict_t* pEntity, int slots, int time, char *menu, int mlen // Logging void AMXXLOG_Init(); -void AMXXLOG_MakeNewLogFile(); +void AMXXLOG_MapChange(); void AMXXLOG_Log(const char *fmt, ...); #define GET_PLAYER_POINTER(e) (&g_players[ENTINDEX(e)]) @@ -216,8 +220,7 @@ int loadModules(const char* filename); void dettachModules(); void dettachReloadModules(); void attachModules(); -void attachMetaModModules( const char* filename ); -void dettachMetaModModules( const char* filename ); +void attachMetaModModules(PLUG_LOADTIME now, const char* filename); // Count modules enum CountModulesMode @@ -280,5 +283,6 @@ extern int FF_PluginEnd; extern int FF_InconsistentFile; extern int FF_ClientAuthorized; +extern CFakeMeta g_FakeMeta; #endif // AMXMODX_H