Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  


An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

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


  • Administrator
  • Hero Member
  • *****
  • Posts: 1900
    • 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.