Hi
Has GLB got any compiler directives for platforms you want to target specific code to ? I couldn't find anything in the help or forums about it.
For example, I'd like to make one source code project where my target compilation systems would be PC, Mac, GPX and PocketPC. I'd want to include extra features in the PC and Mac version but not waste the memory by including code I do not want in the GPX and Pocket PC versions.
I found a runtime command ( info$ = PLATFORMINFO$(what$) ) but obviously this is not changing what is compiled.
If there's not a method of targeting code for specific platform(s) do you think it is a possibility for a future version? Would be handy to be able to use one project and not have to split / spread source code over separate projects to achieve the same result (or produce a bloated exe especially as GPX/PocketPC have limited memory).
eg:
#IF PLATFORM=GPX OR PLATFORM=POCKETPC
REM some code only compliled for GPX and POCKETPC
#ELSE
REM code compiled only for any other platform
#ENDIF
not as far as I know, but you can try C++ code with the INLINE statement to realize that. But don't know if it works.