SRL Archive - OSR Help

ifdef


RISK

2011-12-04 16:20:05

I'm not sure I am using ifdefs properly to include support for non-SRL5 for my script.

Head of the script:

program RTanner;
{$DEFINE SMART}
{$IFDEF SRL5}
{$i SRL/SRL.simba}
{$ELSE}
{$i SRL/SRL.scar}
{$ENDIF}
{$I SPS/SPS.simba}

My Setup procedure which sets the angle to the highest it can be:
  {$IFDEF SRL5}
SetAngle(SRL_ANGLE_HIGH);
{$ELSE}
SetAngle(True);
{$ENDIF}

Can anyone please check these and make sure I have done them correctly? Thanks in advance, I really appreciate it!

Dgby714

2011-12-04 16:35:06

SRL5 is defined in srl.simba