Created
September 30, 2014 09:39
-
-
Save jims/7bfa4c4b4ce8683c5a7e to your computer and use it in GitHub Desktop.
Fix token pasting operator macro for new preprocessor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define CONCAT_(prefix, name) prefix ## name | |
#define CONCAT(prefix, name) CONCAT_(prefix, name) | |
#define TEXTURE_NAME(name) CONCAT(TEXTURE_PREFIX, name) | |
#define SAMPLER_NAME(name) CONCAT(SAMPLER_PREFIX, name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment