Jump to content
FHannes

Default Compiler Defines

Recommended Posts

SCAR contains a number of standard compiler defines that allow you to easily create backwards compatibility in your scripts. You can include/exclude code from a script during compilation with these.

 

Defines:

  • DIVI - Defines in every SCAR Divi version since about 3.04
  • SCAR3xx-yy_UP - Defined in every SCAR Divi version since 3.38.00, the xx is replaced by the major version number and yy by the minor version number. For 3.38.00 this would be SCAR338-00_UP. These defines remain in every version following the one where it was added.
  • SCAR3xx_UP - Defined in every SCAR Divi version since about 3.04, the xx is replaced by the major version number. For 3.25 this would be SCAR325_UP. These defines remain in every version following the one where it was added.
  • SCAR3xx - Defined in every SCAR Divi version since about 3.04, the xx is replaced by the major version number. This is removed witht he next version where a new one for that version is present.
  • PORTABLE - Only present in the portable version of SCAR as of the 3.25 release.
  • SCAR_PREALPHA - Only present in pre-alpha releases of SCAR as of the 3.32 release. Pre-alpha releases are usually not distributed to the public.
  • SCAR_ALPHA - Only present in alpha releases of SCAR as of the 3.32 release.
  • SCAR_BETA - Only present in beta releases of SCAR as of the 3.32 release.
  • SCAR_RC - Only present in release candidate releases of SCAR as of the 3.32 release.
  • SCAR_FINAL - Only present in final build releases of SCAR as of the 3.32 release.

 

Note that the SCAR3xx_UP and SCAR3xx defines will change to SCAR4xx_UP and SCAR4xx for SCAR 4 when it's released, all older 3xx defines will still be in there.

Edited by Freddy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...