Menu

#104 #define for array length crashes parser

open-fixed
nobody
None
5
2008-12-25
2008-12-17
Kevin Egan
No

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

Discussion

  • Okan Arikan

    Okan Arikan - 2008-12-25
    • status: open --> open-fixed
     
  • Okan Arikan

    Okan Arikan - 2008-12-25

    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

     

Log in to post a comment.