mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 16:30:43 +00:00
do the builtin function lookup at load time rather than runtime and store
the function address in the progs function descriptor. this will speed up calls to builtin functions, especially when ranges get introduced.
This commit is contained in:
parent
dfc83c1f5f
commit
595280decb
3 changed files with 30 additions and 19 deletions
|
@ -185,6 +185,11 @@ typedef struct {
|
|||
int binum;
|
||||
} builtin_t;
|
||||
|
||||
typedef struct {
|
||||
int first_statement;
|
||||
builtin_proc func;
|
||||
} bfunction_t;
|
||||
|
||||
ddef_t *PR_FindGlobal (progs_t *pr, const char *name);
|
||||
ddef_t *ED_GlobalAtOfs (progs_t *pr, int ofs);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue