unit_tests/preprocessor/output/stringify-operator-indirect
author Ethan Lee <flibitijibibo@flibitijibibo.com>
Wed, 26 Aug 2020 14:37:18 -0400
changeset 1301 79bbc92200dc
parent 879 6369bd110bff
permissions -rw-r--r--
Write locations for SPIR-V pixel shader outputs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
879
6369bd110bff Added indirect stringify test.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
// Should produce RIGHT and not WRONG.
6369bd110bff Added indirect stringify test.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
#define WRONG RIGHT
6369bd110bff Added indirect stringify test.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
#define STRINGIFY2(x) #x
6369bd110bff Added indirect stringify test.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
#define STRINGIFY(x) STRINGIFY2(x)
6369bd110bff Added indirect stringify test.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
6369bd110bff Added indirect stringify test.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
STRINGIFY(WRONG)
6369bd110bff Added indirect stringify test.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7