From 7b350b2a1ba6dc526219ef91f284ec0712438390 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 3 Jan 2016 16:13:59 +0900 Subject: [PATCH] Indicate calls to builtins when tracing. This makes following progs traces a little easier. --- libs/gamecode/pr_exec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/gamecode/pr_exec.c b/libs/gamecode/pr_exec.c index f67bc1856..0ebf7dbef 100644 --- a/libs/gamecode/pr_exec.c +++ b/libs/gamecode/pr_exec.c @@ -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 {