Created
December 6, 2015 06:33
-
-
Save dloman/307d552b7fa5036c8cdf to your computer and use it in GitHub Desktop.
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 TEST_VAR | |
#define VALUE_TO_STRING(x) #x | |
#define VALUE(x) VALUE_TO_STRING(x) | |
#define VAR_NAME_VALUE(var) #var "=" VALUE(var) | |
/* Some example here */ | |
#pragma message(VAR_NAME_VALUE(TEST_VAR)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment