int localstack_used;
-qboolean pr_trace;
+int pr_trace;
dfunction_t *pr_xfunction;
int pr_xstatement;
if (!f)
Con_Printf ("<NULL FUNCTION>\n");
else
- Con_Printf ("%12s : %s : statement %i\n", pr_strings + f->s_file, pr_strings + f->s_name, pr_stack[i].s - f->first_statement);
+ Con_Printf ("%12s : %s : statement %i\n", PR_GetString(f->s_file), PR_GetString(f->s_name), pr_stack[i].s - f->first_statement);
}
}
if (best)
{
if (num < 10)
- Con_Printf ("%7i %s\n", best->profile, pr_strings+best->s_name);
+ Con_Printf ("%7i %s\n", best->profile, PR_GetString(best->s_name));
num++;
best->profile = 0;
}
return pr_stack[pr_depth].s;
}
+void PR_ReInitStrings (void);
void PR_Execute_ProgsLoaded(void)
{
// dump the stack
pr_depth = 0;
localstack_used = 0;
+ // reset the string table
+ PR_ReInitStrings();
}
/*
}
}
+void PR_ReInitStrings (void)
+{
+}