Close the function again (pop everything above from the stack).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_state) | :: | L | Handle for the Lua script. |
|||
type(aot_fun_type) | :: | fun | Handle to the function to close. |
subroutine aot_fun_close(L, fun)
type(flu_state) :: L !! Handle for the Lua script.
!> Handle to the function to close.
type(aot_fun_type) :: fun
if (fun%handle > 0) call flu_settop(L, fun%handle-1)
fun%handle = 0
fun%id = 0
fun%arg_count = 0
end subroutine aot_fun_close