There's got to be a way to do this...
I have a header file, version.h with one line...
#define VERSION 9
and a few files use the defined value of VERSION as an integer. That's fine.
Without changing the way VERSION is defined, I need to build an initialized "what" string that contains that value, so I need something like this...
char *whatversion = "@(#)VERSION: " VERSION;
obviously this doesn't compile, so somehow I need to get a string of the preprocessed value of VERSION essentially giving this...
char *whatversion = "@(#)VERSION: " "9";
Any ideas? Is this possible?