Hi,
If I run a script, a constant like #HW_WINDOWS is defined, but when I run the compiled applet, it is not.
When I compile it into an executable for Windows, #HW_WINDOWS is defined again, but when I do the same for Android, #HW_ANDROID is not defined here.
I could use the GetVersion() command in some cases, but I want to use the constants in an @IF command for other preprocessor commands like @DISPLAY.
Maybe I am missing something?
#HW_...
Re: #HW_...
you shoulld run the command in order to do it IDE has not yet has it
hollywood test.hws -compile test.hwa -exetype android
already fixed... but in hollywood 9 i guess
viewtopic.php?f=4&t=2053&p=10956#p10834
hollywood test.hws -compile test.hwa -exetype android
already fixed... but in hollywood 9 i guess
viewtopic.php?f=4&t=2053&p=10956#p10834
Christos
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: #HW_...
See the manual:
More info here.Also note that when compiling applets, none of the architectural constants above will be
set. Applets are completely platform-agnostic so if you compile an applet, none of the
architectural constants will be set. An exception is if you compile an applet explicitly
for Android or iOS by passing "android" or "ios" to the -exetype console argument.
In that case, #HW_ANDROID and #HW_IOS, respectively, will indeed be set. If you compile
a platform-independent applet by passing "applet" to the -exetype argument, though,
none of the architectural constants will be set.
Re: #HW_...
Damn, I didn't RTFM far enough.
Thanks.
Maybe this should be possible in the IDE too somehow. Personally I would prefer it if I didn't have to use the console.
Thanks.
Maybe this should be possible in the IDE too somehow. Personally I would prefer it if I didn't have to use the console.