unit_tests/preprocessor/output/concat-operator-define-override
author Ethan Lee <flibitijibibo@flibitijibibo.com>
Wed, 26 Aug 2020 14:37:18 -0400
changeset 1301 79bbc92200dc
parent 863 929ec7cd03e0
permissions -rw-r--r--
Write locations for SPIR-V pixel shader outputs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
863
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
// This should produce "RIGHT" and not "WRONG"
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
#define RI WR
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
#define GHT ONG
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
#define REPLACE(RI, GHT) RI##GHT
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
REPLACE(RI, GHT)
929ec7cd03e0 Added unit tests for preprocessor's macro concat operator.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6