Directives question...
Monkey Forums/Monkey Programming/Directives question...
| ||
Is it possible to have something like this?#APP_TITLE = "My incredible game!" #If TARGET="glfw" #GLFW_WINDOW_TITLE= #APP_TITLE #End #If TARGET="android" #ANDROID_APP_LABEL= #APP_TITLE #End (If I try the code above in Monkey, I get a "unexpected token #") Would be nice to have something like that, so I won't have to set the same string over and over to every possible target. I tried defining a "Const" APP_TITLE String (instead of using a directive), but that didn't work, the window caption becomes "0" - I guess the "Const" is only processed after the # symbols :( |