mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
Indicate calls to builtins when tracing.
This makes following progs traces a little easier.
This commit is contained in:
parent
c3e3ed944c
commit
7b350b2a1b
1 changed files with 4 additions and 0 deletions
|
@ -338,6 +338,10 @@ PR_CallFunction (progs_t *pr, func_t fnum)
|
||||||
f = pr->function_table + fnum;
|
f = pr->function_table + fnum;
|
||||||
if (f->first_statement < 0) {
|
if (f->first_statement < 0) {
|
||||||
// negative statements are built in functions
|
// negative statements are built in functions
|
||||||
|
if (pr->pr_trace) {
|
||||||
|
Sys_Printf ("Calling builtin %s @ %p\n",
|
||||||
|
PR_GetString (pr, f->descriptor->s_name), f->func);
|
||||||
|
}
|
||||||
f->func (pr);
|
f->func (pr);
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue