Results 1 to 2 of 2

Thread: ifdef

  1. #1
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default ifdef

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

    Head of the script:
    Simba Code:
    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:
    Simba Code:
    {$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!

  2. #2
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    SRL5 is defined in srl.simba

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •