@APPENTRY file$
@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.