unit_tests/preprocessor/output/macro-1-arg-accepts-void
author Ethan Lee <flibitijibibo@flibitijibibo.com>
Wed, 26 Aug 2020 14:37:18 -0400
changeset 1301 79bbc92200dc
parent 751 be2ebc79ef9a
permissions -rw-r--r--
Write locations for SPIR-V pixel shader outputs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
751
be2ebc79ef9a Added unit test to make sure x() is okay with #define x(a).
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
// x() should be considered one (blank) argument when there is a macro which
be2ebc79ef9a Added unit test to make sure x() is okay with #define x(a).
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
//  has one parameter. It should produce "RIGHT" and not "RIGHT()", and no
be2ebc79ef9a Added unit test to make sure x() is okay with #define x(a).
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
//  errors.
be2ebc79ef9a Added unit test to make sure x() is okay with #define x(a).
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
#define x(a) RIGHT a
be2ebc79ef9a Added unit test to make sure x() is okay with #define x(a).
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
x()