mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-25 03:31:25 +00:00
make progs type checking optional at configure time. still defaults to on.
This commit is contained in:
parent
b2cd7c6c36
commit
05cf89dd5d
4 changed files with 11 additions and 2 deletions
|
@ -130,5 +130,8 @@
|
|||
/* Define this if you have _mkdir */
|
||||
#undef HAVE__mkdir
|
||||
|
||||
/* Define this if you want progs typechecking */
|
||||
#undef TYPECHECK_PROGS
|
||||
|
||||
@BOTTOM@
|
||||
#endif // __config_h_
|
||||
|
|
|
@ -1152,6 +1152,12 @@ AC_ARG_ENABLE(optimize,
|
|||
optimize=yes
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(typecheck-progs,
|
||||
[ --disable-typecheck-progs disable type checking on progs field access])
|
||||
if test "x$enable_typecheck_progs" != xno; then
|
||||
AC_DEFINE(TYPECHECK_PROGS)
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(amd,
|
||||
[ --with-amd Optimize for AMD processors instead of Intel],
|
||||
HAVE_AMD="yes",
|
||||
|
|
|
@ -182,7 +182,7 @@ typedef struct
|
|||
|
||||
extern sv_fields_t sv_fields;
|
||||
|
||||
#if 1
|
||||
#if TYPECHECK_PROGS
|
||||
#define SVFIELD(e,f,t) E_var (e, PR_AccessField (&sv_pr_state, #f, ev_##t, __FILE__, __LINE__), t)
|
||||
#else
|
||||
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)
|
||||
|
|
|
@ -157,7 +157,7 @@ typedef struct
|
|||
|
||||
extern sv_fields_t sv_fields;
|
||||
|
||||
#if 1
|
||||
#if TYPECHECK_PROGS
|
||||
#define SVFIELD(e,f,t) E_var (e, PR_AccessField (&sv_pr_state, #f, ev_##t, __FILE__, __LINE__), t)
|
||||
#else
|
||||
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)
|
||||
|
|
Loading…
Reference in a new issue