mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +00:00
function calls work now
This commit is contained in:
parent
50ae388caa
commit
c629de9b3b
1 changed files with 8 additions and 2 deletions
|
@ -695,10 +695,16 @@ emit_function_call (expr_t *e, def_t *dest)
|
||||||
emit_statement (op, arg, &def_parms[ind], 0);
|
emit_statement (op, arg, &def_parms[ind], 0);
|
||||||
}
|
}
|
||||||
op = PR_Opcode_Find (va ("<CALL%d>", count), -1, &def_function, &def_void, &def_void);
|
op = PR_Opcode_Find (va ("<CALL%d>", count), -1, &def_function, &def_void, &def_void);
|
||||||
emit_statement (op, func, 0, dest);
|
emit_statement (op, func, 0, 0);
|
||||||
|
|
||||||
def_ret.type = func->type->aux_type;
|
def_ret.type = func->type->aux_type;
|
||||||
return &def_ret;
|
if (dest) {
|
||||||
|
op = PR_Opcode_Find ("=", 5, dest, &def_ret, &def_ret);
|
||||||
|
emit_statement (op, &def_ret, dest, 0);
|
||||||
|
return dest;
|
||||||
|
} else {
|
||||||
|
return &def_ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def_t *
|
def_t *
|
||||||
|
|
Loading…
Reference in a new issue