Indicate calls to builtins when tracing.

This makes following progs traces a little easier.
This commit is contained in:
Bill Currie 2016-01-03 16:13:59 +09:00
parent c3e3ed944c
commit 7b350b2a1b
1 changed files with 4 additions and 0 deletions

View File

@ -338,6 +338,10 @@ 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) {
Sys_Printf ("Calling builtin %s @ %p\n",
PR_GetString (pr, f->descriptor->s_name), f->func);
}
f->func (pr);
return 0;
} else {