unit_tests/preprocessor/output/stringify-operator-indirect
author Katelyn Gadd <kg@luminance.org>
Tue, 15 Jun 2021 22:11:58 -0400
changeset 1322 f9b8e34cc41f
parent 879 6369bd110bff
permissions -rw-r--r--
hlsl: Emit attributes for POSITION1 and above. Also, add an assert for the case where a buggy VS is missing outputs its PS needs (the shader will fail to compile anyway and produce a mystery crash later, so this is an improvement)

// Should produce RIGHT and not WRONG.
#define WRONG RIGHT
#define STRINGIFY2(x) #x
#define STRINGIFY(x) STRINGIFY2(x)

STRINGIFY(WRONG)