fn: lua_pop
[contents]

Contents

Syntax

The syntax for lua_pop calls is:

f++:  
lua_pop(int)

n++:  
@lua_pop(int)

Description

The lua_pop function takes a single integer parameter and pops that number of elements from the Lua stack, it is a binding for this function.

f++ example

Example of lua_pop being used with f++:

  1. lua_pushnumber(10)
  2. console(lua_gettop())
  3. lua_pop(1)
  4. console(lua_gettop())

n++ example

Example of lua_pop being used with n++:

  1. @lua_pushnumber(10)
  2. @console(@lua_gettop())
  3. @lua_pop(1)
  4. @console(@lua_gettop())