removed debug log for float testings
This commit is contained in:
parent
76358f4289
commit
be1bc6f75c
|
@ -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; index<amxdbg->hdr->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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user