REM > {!}.!Main

ON ERROR ON ERROR OFF: SYS"Hourglass_Smash": ERROR 0,"Error during initialisation: "+REPORT$+" ("+STR$ERL+")": END
SYS"Hourglass_On"
Task_Name$      = "{!}"
Task_ThrowBack% = TRUE

LIBRARY"JLibraries:Heap.2"
LIBRARY"JLibraries:Menu.6"
LIBRARY"JLibraries:Mess.2"
LIBRARY"JLibraries:Object.2"
LIBRARY"JLibraries:Sprite.2"
LIBRARY"JLibraries:String.1"
LIBRARY"JLibraries:Wimp.6"
LIBRARY"JLibraries:Wind.5"
LIBRARY"JLibraries:Debug.2"

PROCWimp_Init
LIBRARY"JLibraries:Libs.1": PROCLibs_Load(Task_Name$ + "Code:")
ON ERROR IF FNWimp_Error THEN END ELSE END
PROCInit
SYS"Hourglass_Off"

ON ERROR IF FNWimp_Error THEN Task_Quit% = TRUE

 WHILE NOT Task_Quit%
  PROCWimp_Poll
 ENDWHILE

ON ERROR ON ERROR OFF: ERROR 0,"Error whilst closing down: "+REPORT$+" ("+STR$ERL+")": END
PROCQuit
PROCWimp_Close
END
