dfe827e793
When using `gcc -fsanitize=undefined`, the compiler proves trivial results, so `DXX_CONSTANT_TRUE` is defined. It then fails to prove that `DXX_CONSTANT_TRUE(m_state == checked)` is false, causing a compile-time error. Relax the check to occur only when it can prove `m_state` equal to a disallowed value, rather than when it cannot prove `m_state` equal to an allowed value. Move the preprocessor guard so that the runtime check is always visible. Optimizing compilers can still eliminate that check at compile-time when it provably never fails. |
||
---|---|---|
.. | ||
editor | ||
3d.h | ||
args.h | ||
byteutil.h | ||
compiler-addressof.h | ||
compiler-array.h | ||
compiler-begin.h | ||
compiler-exchange.h | ||
compiler-integer_sequence.h | ||
compiler-lengthof.h | ||
compiler-make_unique.h | ||
compiler-range_for.h | ||
compiler-static_assert.h | ||
compiler-type_traits.h | ||
console.h | ||
countarray.h | ||
cpp-valptridx.h | ||
digi_audio.h | ||
digi_mixer.h | ||
digi_mixer_music.h | ||
dsx-ns.h | ||
dxxerror.h | ||
event.h | ||
fmtcheck.h | ||
func.h | ||
fwd-event.h | ||
fwd-gr.h | ||
fwd-partial_range.h | ||
fwd-valptridx.h | ||
fwd-vecmat.h | ||
fwd-window.h | ||
gr.h | ||
grdef.h | ||
hash.h | ||
hmp.h | ||
iff.h | ||
ignorecase.h | ||
internal.h | ||
interp.h | ||
joy.h | ||
jukebox.h | ||
key.h | ||
loadgl.h | ||
makesig.h | ||
maths.h | ||
messagebox.h | ||
mouse.h | ||
ntstring.h | ||
null_sentinel_iterator.h | ||
ogl_extensions.h | ||
ogl_init.h | ||
ogl_sync.h | ||
pack.h | ||
palette.h | ||
partial_range.h | ||
pcx.h | ||
physfs-serial.h | ||
physfs_list.h | ||
physfsx.h | ||
poison.h | ||
pstypes.h | ||
rbaudio.h | ||
reverse.h | ||
rle.h | ||
serial.h | ||
strutil.h | ||
texmap.h | ||
timer.h | ||
u_mem.h | ||
ui.h | ||
valptridx.h | ||
varutil.h | ||
vecmat.h | ||
window.h |