lua-users home
lua-l archive

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


Is there docs somewhere that shows what each lua C function does to the stack.

What I am looking for is something like this:

function:                stack
------------------------------
lua_pushstring       +1
lua_pushnumber    +1
lua_settable           -2
etc...

Most of these are obvious, but some are not obvious, and I was hoping that someone else has already done this...

Or should I just blindly surround my code with gettop/settop to make sure I don't leave anything on the stack?

Brian