lua_rawget

lua_rawget[-1, +1, –] int lua_rawget (lua_State *L, int index); Similar to lua_gettable, but does a raw access (i.e., without metamethods).

lua_rawequal

lua_rawequal[-0, +0, –] int lua_rawequal (lua_State *L, int index1, int index2); Returns 1 if the two values in indices index1 and index2 are primitively equal (that is, without calling the __eq metamethod). Otherwise returns 0. Also returns 0 if any of the indices are not valid.

lua_pushvfstring

lua_pushvfstring[-0, +1, m] const char *lua_pushvfstring (lua_State *L, const char *fmt, va_list argp); Equivalent to lua_pushfstring, except that it receives a va_list instead of a variable number of arguments.

lua_pushvalue

lua_pushvalue[-0, +1, –] void lua_pushvalue (lua_State *L, int index); Pushes a copy of the element at the given index onto the stack.

lua_pushthread

lua_pushthread[-0, +1, –] int lua_pushthread (lua_State *L); Pushes the thread represented by L onto the stack. Returns 1 if this thread is the main thread of its state.

lua_pushstring

lua_pushstring[-0, +1, m] const char *lua_pushstring (lua_State *L, const char *s); Pushes the zero-terminated string pointed to by s onto the stack. Lua makes (or reuses) an internal copy of the given string, so the memory at s can be freed or reused immediately after the function returns. Returns a pointer to the internal copy of the string. If s is NULL, pushes nil and returns NULL.

lua_pushnumber

lua_pushnumber[-0, +1, –] void lua_pushnumber (lua_State *L, lua_Number n); Pushes a float with value n onto the stack.

lua_pushnil

lua_pushnil[-0, +1, –] void lua_pushnil (lua_State *L); Pushes a nil value onto the stack.

lua_pushlstring

lua_pushlstring[-0, +1, m] const char *lua_pushlstring (lua_State *L, const char *s, size_t len); Pushes the string pointed to by s with size len onto the stack. Lua makes (or reuses) an internal copy of the given string, so the memory at s can be freed or reused immediately after the function returns. The string can contain any binary data, including embedded zeros. Returns a pointer to the internal copy of the string.

lua_pushliteral

lua_pushliteral[-0, +1, m] const char *lua_pushliteral (lua_State *L, const char *s); This macro is equivalent to lua_pushstring, but should be used only when s is a literal string.