Hi

I'm trying to define array length at runtime. In C I believe that any integer constant can be used as the array length.

In Lite-C, a #define constant compiles as expected if the value is a primitive integer

Code:
#define MYLENGTH 1
var myarray[MYLENGTH];



But use any kind of expression in the #define and you get a syntax error:

Code:
#define MYLENGTH 1 + 1
var myarray[MYLENGTH];



Even this minimal expression won't compile:

Code:
#define MYLENGTH (1)
var myarray[MYLENGTH];



New to C and to Lite-C so perhaps I'm doing something dim? Any advice much appreciated.