@IF preprocessor command

Find quick help here to get you started with Hollywood
Post Reply
bitRocky
Posts: 110
Joined: Fri Nov 14, 2014 6:01 pm

@IF preprocessor command

Post by bitRocky »

I wanted to do something like that:

Code: Select all

@DISPLAY { Width = 800, Height = 600, Title = "Blu Morpho - Lost In Space",
@IF #HW_ANDROID
	Mode = "FullScreenScale"
@ELSE
	Mode = "Windowed"
@ENDIF
}
But this doesn't seem to work, I get an error.

SamuraiCrow
Posts: 309
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: @IF preprocessor command

Post by SamuraiCrow »

Code: Select all

@IF #HW_ANDROID
@DISPLAY {TITLE="Blue Morpho - Lost in Space", MODE="FullScreenScale"}
@ELSE
@DISPLAY {MODE="Windowed", TITLE="Blue Morpho - Lost in Space"}
@ENDIF
should work. If you need the title defined once, use a const directive.
I'm on registered MorphOS using FlowStudio.

User avatar
airsoftsoftwair
Posts: 4243
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: @IF preprocessor command

Post by airsoftsoftwair »

As @IF is itself a preprocessor command, it can't be included in the middle of another preprocessor command so you have to do it as shown by SamuraiCrow.

Post Reply