Defining DIM outside from main

Previous topic - Next topic

Albert

if you defining DIM outside from MAIN (I mean from an include gpas file or after some function) then you get strange compiler messages like '{' not expected in ...cpp and a message to please copy these errorcodes to the glBasic forums.
The preprocessor sould be fixed to prevent .cpp making if DIM defined in the wrong place

Kitty Hello

Code (glbasic) Select
FUNCTION foo:
ENDFUNCTION

DIM a[5] // like this??

Albert

Yes.
I tried your code: gcc freezed :D

Kitty Hello