Jump to content
FHannes

SCAR Divi 3.30 Alpha

Recommended Posts

SCAR Divi 3.30 Alpha is now available. At the moment only a few bugfixes, new stuff will be added soon.

 

Regular: http://svn.scar-divi.com/scar/

Portable: http://svn.scar-divi.com/scar_portable/

 

Changelog:

Bugfixes:
- Small bug in the preprocessor
- Bug when saving a file to a location that is no longer accessible

Additions:
- New menu to add tabs or close all tabs next to existing tabs in script editor
- $HINT, $WARN(ING) and $ERROR directives

 

Enjoy :)

 

~Freddy

Edited by Freddy
Link to comment
Share on other sites

I just finished up the first item on the roadmap, I've added the compiler directives $ERROR, $WARN(ING) and $HINT. These can be used to trigger errors, hints or warnings before the compiler itself if even started, when the preprocessor is plowing through the script and includes, so these are also directly affected by IFDEFS and such. Here's an example:

 

{$IFNDEF SCAR330_UP}
 {$ERROR This script will only run on SCAR Divi 3.30 and newer!}
{$ENDIF}

{$HINT This line is useless, you can remove it!}

{$WARN This line is useless, you SHOULD remove it!}

begin

end.

 

The error line above will only be useful in some way in SCAR 3.29+ before all previous 3.25+ versions would just ignore it and 3.29 just throws an "unknown directive"ish error, but that will allow you to go to the line and see what caused it, so you can read the message there. 3.30 and above will display the error message in the messages tab and the same thing for warnings and hints with the exception that only errors will stop the script from compiling any further. Note that there's no different between hints and warnings other than the same, however, to express the seriousness of the message you can pick between them.

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...