[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: lua_checkstack documentation nitpick
- From: Alexander Gladysh <agladysh@...>
- Date: Thu, 19 Feb 2009 16:07:43 +0300
Quoting http://www.lua.org/manual/5.1/manual.html#lua_checkstack (with
"Ensures that there are at least extra free stack slots in the stack.
It returns *false* if it cannot grow the stack to that size. This
function never shrinks the stack; if the stack is already larger than
the new size, it is left unchanged."
I believe that to be consistent with the rest of Lua C API docs, it
should say "It returns *0* if it cannot grow the stack to that size."
It may also make sense to add something like "Otherwise returns a