mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 18:31:27 +00:00
[gamecode] Hide trace messages when debugger is attached
This commit is contained in:
parent
bd7212a411
commit
e9733416f4
1 changed files with 3 additions and 3 deletions
|
@ -193,7 +193,7 @@ PR_EnterFunction (progs_t *pr, bfunction_t *f)
|
|||
pr_type_t *dstParams[MAX_PARMS];
|
||||
pointer_t paramofs = 0;
|
||||
|
||||
if (pr->pr_trace) {
|
||||
if (pr->pr_trace && !pr->debug_handler) {
|
||||
Sys_Printf ("Entering function %s\n",
|
||||
PR_GetString (pr, f->descriptor->s_name));
|
||||
}
|
||||
|
@ -284,7 +284,7 @@ PR_LeaveFunction (progs_t *pr, int to_engine)
|
|||
|
||||
PR_PopFrame (pr);
|
||||
|
||||
if (pr->pr_trace) {
|
||||
if (pr->pr_trace && !pr->debug_handler) {
|
||||
Sys_Printf ("Leaving function %s\n",
|
||||
PR_GetString (pr, f->descriptor->s_name));
|
||||
if (to_engine) {
|
||||
|
@ -405,7 +405,7 @@ PR_CallFunction (progs_t *pr, func_t fnum)
|
|||
f = pr->function_table + fnum;
|
||||
if (f->first_statement < 0) {
|
||||
// negative statements are built in functions
|
||||
if (pr->pr_trace) {
|
||||
if (pr->pr_trace && !pr->debug_handler) {
|
||||
Sys_Printf ("Calling builtin %s @ %p\n",
|
||||
PR_GetString (pr, f->descriptor->s_name), f->func);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue