Skip to content

Instantly share code, notes, and snippets.

@jims
Created September 30, 2014 09:39
Show Gist options
  • Save jims/7bfa4c4b4ce8683c5a7e to your computer and use it in GitHub Desktop.
Save jims/7bfa4c4b4ce8683c5a7e to your computer and use it in GitHub Desktop.
Fix token pasting operator macro for new preprocessor
#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