Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: ASL $main() function  (Read 11114 times)

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2125
    • View Profile
ASL $main() function
« on: March 05, 2014, 05:30:07 pm »

If you declare a function named $main your script will initiate with a call to that function. It must return the type void and have no parameters or simply void:

void $main(void) { ... }

Other global executable statements are prohibited when there is a $main function, but global variable declarations are allowed.

Logged