From be1bc6f75c3b8a7cd70b2472295e053bb8088715 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Fri, 10 Feb 2006 19:47:09 +0000 Subject: [PATCH] removed debug log for float testings --- amxmodx/amxdbg.cpp | 22 ---------------------- amxmodx/modules.cpp | 4 ---- 2 files changed, 26 deletions(-) diff --git a/amxmodx/amxdbg.cpp b/amxmodx/amxdbg.cpp index ebb06fd9..7f05afb7 100755 --- a/amxmodx/amxdbg.cpp +++ b/amxmodx/amxdbg.cpp @@ -267,28 +267,6 @@ int AMXAPI dbg_LookupLine(AMX_DBG *amxdbg, ucell address, long *line) return AMX_ERR_NONE; } -void AMXAPI dbg_DumpFuncs(AMX_DBG *amxdbg, const char *file) -{ - int index; - FILE *fp = fopen(file, "at"); - - if (!fp) - return; - - for (index=0; indexhdr->symbols; index++) - { - if (amxdbg->symboltbl[index]->ident == iFUNCTN) - { - fprintf(fp, "[%s] --> (%d-%d)", - amxdbg->symboltbl[index]->name, - amxdbg->symboltbl[index]->codestart, - amxdbg->symboltbl[index]->codeend); - } - } - - fclose(fp); -} - int AMXAPI dbg_LookupFunction(AMX_DBG *amxdbg, ucell address, const char **funcname) { /* dbg_LookupFunction() finds the function a code address is in. It can be diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 2c264211..c054e577 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -101,8 +101,6 @@ void free_amxmemory(void **ptr) *ptr = 0; } -void AMXAPI dbg_DumpFuncs(AMX_DBG *amxdbg, const char *file); - int load_amxscript(AMX *amx, void **program, const char *filename, char error[64], int debug) { *error = 0; @@ -200,8 +198,6 @@ int load_amxscript(AMX *amx, void **program, const char *filename, char error[64 return (amx->error = AMX_ERR_INIT); } - dbg_DumpFuncs(pDbg, "c:\\test.txt"); - amx->flags |= AMX_FLAG_DEBUG; } else { sprintf(error, "Plugin not compiled with debug option");