#include <petscmacros.h> const char* PetscStringize(x)
x | - The token you would like to stringize |
<return | - value> - The string representation of x |
PetscStringize() expands x before stringizing it, if you do not wish to do so, use PetscStringize_() instead.
#define MY_OTHER_VAR hello there #define MY_VAR MY_OTHER_VAR PetscStringize(MY_VAR) -> "hello there" PetscStringize_(MY_VAR) -> "MY_VAR" int foo; PetscStringize(foo) -> "foo" PetscStringize_(foo) -> "foo"