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

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

n++ example

Example of lua_remove being used with n++:

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