lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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