mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 17:12:15 +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 */
|
/* Define this if you have _mkdir */
|
||||||
#undef HAVE__mkdir
|
#undef HAVE__mkdir
|
||||||
|
|
||||||
|
/* Define this if you want progs typechecking */
|
||||||
|
#undef TYPECHECK_PROGS
|
||||||
|
|
||||||
@BOTTOM@
|
@BOTTOM@
|
||||||
#endif // __config_h_
|
#endif // __config_h_
|
||||||
|
|
|
@ -1152,6 +1152,12 @@ AC_ARG_ENABLE(optimize,
|
||||||
optimize=yes
|
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,
|
AC_ARG_WITH(amd,
|
||||||
[ --with-amd Optimize for AMD processors instead of Intel],
|
[ --with-amd Optimize for AMD processors instead of Intel],
|
||||||
HAVE_AMD="yes",
|
HAVE_AMD="yes",
|
||||||
|
|
|
@ -182,7 +182,7 @@ typedef struct
|
||||||
|
|
||||||
extern sv_fields_t sv_fields;
|
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)
|
#define SVFIELD(e,f,t) E_var (e, PR_AccessField (&sv_pr_state, #f, ev_##t, __FILE__, __LINE__), t)
|
||||||
#else
|
#else
|
||||||
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)
|
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)
|
||||||
|
|
|
@ -157,7 +157,7 @@ typedef struct
|
||||||
|
|
||||||
extern sv_fields_t sv_fields;
|
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)
|
#define SVFIELD(e,f,t) E_var (e, PR_AccessField (&sv_pr_state, #f, ev_##t, __FILE__, __LINE__), t)
|
||||||
#else
|
#else
|
||||||
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)
|
#define SVFIELD(e,f,t) E_var (e, sv_fields.f, t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue