-
-
Save Cih2001/002a5753dd2e848f4c13dc9af36cfc08 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
/* | |
* This macro is a lambda function to pack all required steps into one single command | |
* when defining strings. | |
*/ | |
#define STR(str) \ | |
[]() -> char* { \ | |
constexpr auto size = sizeof(str)/sizeof(str[0]); \ | |
constexpr auto obfuscated_str = obfuscator<size>(str); \ | |
static char original_string[size]; \ | |
obfuscated_str.deobfoscate((unsigned char *)original_string); \ | |
return original_string; \ | |
}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment