[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug with unchecked stack overflow with coroutines
- From: "Patrick Donnelly" <batrick.donnelly@...>
- Date: Tue, 12 Feb 2008 09:20:10 -0700
Perhaps the limit LUA_MAXCSTACK should be an arbitrary number, but the
other macros that are dependent on this value, such as
LUA_REGISTRYINDEX et. al., should just subtract from this maximum
stack value. e.g.
#define LUA_REGISTRYINDEX ((-LUA_MAXCSTACK) - 1)
Currently it's misleading that one could change LUA_MAXCSTACK without
consequences when it must be less than the absolute value of these...
values.
Also, my name is spelled wrong on the bug report page :P
Regards,
--
-Patrick Donnelly
"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."
-Will Durant