mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
edict field access type checking :) Currently forced on, but it will become a
configure option in the future
This commit is contained in:
parent
68220d1fb0
commit
10e6b7af84
9 changed files with 38 additions and 22 deletions
|
@ -151,7 +151,11 @@ typedef struct
|
|||
|
||||
extern sv_fields_t sv_fields;
|
||||
|
||||
#if 1
|
||||
#define SVFIELD(e,f,t) ((ED_FindField (&sv_pr_state, #f)->type == ev_##t) ? E_var (e, sv_fields.f, t) : PR_Error (&sv_pr_state, "bad type access %s:%d", __FILE__, __LINE__), E_var (e, sv_fields.f, t))
|
||||
#else
|
||||
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)
|
||||
#endif
|
||||
|
||||
#define PROGHEADER_CRC 54730
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue