Next: Preprocessor Up: Smac definition Previous: Function definition

# Global variable definition

Global variable definitions are written in Smac as in C, but their initialization is performed just after their definition reading (thus before reading the following).

By default global variables and arrays are initialized with 0, but local variables and arrays are not initialized.

I am sorry, but it is not (yet ?) possible to initialize an array within its declaration with values in braces, furthermore you must give every dimension values (it is not possible to use [ ]).