Function Main

Top 

The script file operation commonly starts with the main function. The main function shall be declared as follows:

void main()

{

  ...

}

Note. The main function should not necessarily be included in a script file. If there is no main function, then the script file will be loaded into the memory and stay there with its global functions and data available to other script files.