fn: lua_remove
[contents]

Contents

Syntax

The syntax for lua_remove calls is:

f++:  
lua_remove(int)

n++:  
@lua_remove(int)

Description

The lua_remove function takes a single integer parameter and remove the element at that index from the Lua stack, shifting down elements above this index to fill the gap, it is a binding for this function.

f++ example

Example of lua_remove being used with f++:

lua_pushnumber(10)
console(lua_gettop())
lua_remove(1)
console(lua_gettop())

n++ example

Example of lua_remove being used with n++:

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