Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

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 1276 times)

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1532
    • View Profile
ASL $main() function
« on: March 05, 2014, 10: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