mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
fix up #0 builtin functions at runtime. not done automaticly (need to call
PR_RelocateBuiltins) and fix a bug with profiling and unlimited execution counts
This commit is contained in:
parent
2185e0a92e
commit
3dafbebf10
5 changed files with 51 additions and 77 deletions
|
@ -166,7 +166,8 @@ char *PR_GlobalStringNoContents (progs_t *pr, int ofs, etype_t type);
|
|||
pr_type_t *GetEdictFieldValue(progs_t *pr, edict_t *ed, const char *field);
|
||||
|
||||
void PR_AddBuiltin (progs_t *pr, const char *name, builtin_proc builtin, int num);
|
||||
int PR_FindBuiltin (progs_t *pr, const char *name);
|
||||
builtin_t *PR_FindBuiltin (progs_t *pr, const char *name);
|
||||
void PR_RelocateBuiltins (progs_t *pr);
|
||||
|
||||
//
|
||||
// PR Strings stuff
|
||||
|
@ -223,6 +224,7 @@ struct progs_s {
|
|||
dprograms_t *progs;
|
||||
int progs_size;
|
||||
|
||||
struct hashtab_s *builtin_hash;
|
||||
struct hashtab_s *function_hash;
|
||||
struct hashtab_s *global_hash;
|
||||
struct hashtab_s *field_hash;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue