Wrapper for lua_pop that pops n elements from the Lua API stack.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L |
Handle to the Lua script |
|||
integer, | intent(in), | optional | :: | n |
Number of elements to pop from the Lua API stack, defaults to 1. |
subroutine flu_pop(L, n) type(flu_State) :: L !! Handle to the Lua script !> Number of elements to pop from the Lua API stack, defaults to 1. integer, optional, intent(in) :: n integer(kind=c_int) :: n_c n_c = -2 if (present(n)) n_c = -n-1 call lua_settop(L%state, n_c) end subroutine flu_pop