mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/preproc: Allow capital U and L after integer constants as well.
Technically we shouldn't allow "uu" or "ll" either, but we also don't really handle preprocessor parsing errors the way we should. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
4e36c1825d
commit
13a1ba4263
@ -99,6 +99,39 @@ pass
|
||||
pass
|
||||
#endif
|
||||
|
||||
[preproc]
|
||||
#if 2u == 2
|
||||
pass
|
||||
#else
|
||||
fail
|
||||
#endif
|
||||
|
||||
[preproc]
|
||||
#if 2l == 2
|
||||
pass
|
||||
#else
|
||||
fail
|
||||
#endif
|
||||
|
||||
[preproc]
|
||||
#if 2Ul == 2
|
||||
pass
|
||||
#else
|
||||
fail
|
||||
#endif
|
||||
|
||||
[preproc]
|
||||
#if 2uL == 2
|
||||
pass
|
||||
#else
|
||||
fail
|
||||
#endif
|
||||
|
||||
[preproc]
|
||||
#if 012lu == 10
|
||||
pass
|
||||
#endif
|
||||
|
||||
[preproc]
|
||||
/* All math is done using unsigned 32-bit integers. */
|
||||
#if 8 / -3 == 2
|
||||
|
Reference in New Issue
Block a user