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++:

lua_pushnumber(10)
console(lua_gettop())
lua_pop(1)
console(lua_gettop())

n++ example

Example of lua_pop being used with n++:

@lua_pushnumber(10)
@console(@lua_gettop())
@lua_pop(1)
@console(@lua_gettop())