Name
APPENTRY -- declare application entry script (V10.0)
Synopsis
@APPENTRY file$
Function
This preprocessor command allows you to define the entry script for a project. This is only useful if you have a project that consists of multiple scripts. In such a project you typically have a main script which uses @INCLUDE to include several other helper scripts. By adding @APPENTRY to your helper scripts you can tell Hollywood the name of the main script. Whenever you run one of the helper scripts and Hollywood encounters the @APPENTRY definition, it will run the main script instead of the helper script.

For example, let's suppose your project consists of the following three scripts:

 
main.hws
engine.hws
utils.hws

You could then place the following line at the top of the helper scripts, i.e. at the top of engine.hws and utils.hws:

 
@APPENTRY "main.hws"

With that definition Hollywood will run main.hws whenever you start engine.hws or utils.hws because main.hws has been set as the entry script. This can be very convenient, e.g. when editing helper scripts in the Hollywood IDE. If you use @APPENTRY you can just click on "Run" and the IDE will run the main script instead.

Inputs
file$
entry script file

Show TOC