slang-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: Stack Overflow: Block stack overflow


Miguel Nicolau <Miguel.Nicolau@xxxxx> wrote:
>The "if.sl" file (which I am attaching) consists of 100 if-statements
>within each other. It crashes after 50 of them, which suggests to me that
>there is a buffer of 50 calls defined somewhere within the interpreter. Is
>there a way to change the size of this buffer through a function call? If
>yes, which function, if not, where in the s-lang sources is this buffer
>size defined (so I can adapt it for my needs)?

In slang/src/sllimits.h, try changing

   #define SLANG_MAX_BLOCK_STACK_LEN	50

to something larger.  You are the first person to hit this limit.  I
will see what needs to be done to remove the limit in version 2.

Thanks,
--John


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]