mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
Make the disasm a bit more verbose as to where globals are
This commit is contained in:
parent
ed6189e655
commit
12fca5ef8f
1 changed files with 3 additions and 4 deletions
7
exec.c
7
exec.c
|
@ -334,16 +334,15 @@ static void trace_print_global(qc_program *prog, unsigned int glob, int vtype)
|
|||
def = prog_getdef(prog, glob);
|
||||
value = (qcany*)(&prog->globals[glob]);
|
||||
|
||||
len = printf("[@%u] ", glob);
|
||||
if (def) {
|
||||
const char *name = prog_getstring(prog, def->name);
|
||||
if (name[0] == '#')
|
||||
len = printf("$");
|
||||
len += printf("$");
|
||||
else
|
||||
len = printf("%s ", name);
|
||||
len += printf("%s ", name);
|
||||
vtype = def->type & DEF_TYPEMASK;
|
||||
}
|
||||
else
|
||||
len = printf("[@%u] ", glob);
|
||||
|
||||
switch (vtype) {
|
||||
case TYPE_VOID:
|
||||
|
|
Loading…
Reference in a new issue