edict field access type checking :) Currently forced on, but it will become a

configure option in the future
This commit is contained in:
Bill Currie 2001-03-01 21:11:35 +00:00
parent 68220d1fb0
commit 10e6b7af84
9 changed files with 38 additions and 22 deletions

View file

@ -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