mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
ir_function_dump to print builtins as such
This commit is contained in:
parent
d4b2790deb
commit
fe8457f9ba
1 changed files with 4 additions and 0 deletions
4
ir.c
4
ir.c
|
@ -2511,6 +2511,10 @@ void ir_function_dump(ir_function *f, char *ind,
|
|||
int (*oprintf)(const char*, ...))
|
||||
{
|
||||
size_t i;
|
||||
if (f->builtin != 0) {
|
||||
oprintf("%sfunction %s = builtin %i\n", ind, f->name, -f->builtin);
|
||||
return;
|
||||
}
|
||||
oprintf("%sfunction %s\n", ind, f->name);
|
||||
strncat(ind, "\t", IND_BUFSZ);
|
||||
if (f->locals_count)
|
||||
|
|
Loading…
Reference in a new issue