#define for array length crashes parser
Status: Beta
Brought to you by:
render_man
The following snippet from a .sl file is registered as a parse error, than the parser crashes
#define NUM_LIGHTS (5)
...
float light_array[NUM_LIGHTS];
motionpainted.sl(56) : error : Parse error
sdrc: sl.y:937: int slparse(): Assertion `sdr->desired() & SLC_NONE' failed.
Abort (core dumped)
Not that big of a deal since you can do "float light_array[5];" as a workaround.
Kevin
Indeed a bug Kevin. I fixed this problem in the SVN trunk, it should now compile with the #define statement above.
Now onto the triangulation bug ....
Thank you,
Okan