I have two preprocessor macros defined for the size of the client's view area, VIEW_WIDTH and VIEW_HEIGHT. I'm trying to set world.view to a value determined by those values, but world.view must be a constant expression. Is there any way to make a text string, using preprocessor macros, that would be considered a constant expression? This is basically what I'm trying to do:
#define VIEW_WIDTH 15
#define VIEW_HEIGHT 13
view = "[VIEW_WIDTH]x[VIEW_HEIGHT]"
I tried making a preprocessor function (whatever they're called) that would accept those two values and create the appropriate string, but preprocessor magic isn't my area. Any ideas?