Put a given reference (ref) in the Lua script (L) to the top of the stack.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(flu_State) | :: | L | Handle to the Lua script |
|||
integer | :: | ref | Reference retrieved by aot_reference_for to put on the top of the stack |
subroutine aot_reference_to_top(L, ref)
type(flu_State) :: L !! Handle to the Lua script
!> Reference retrieved by [[aot_reference_for]] to put on the top
!! of the stack
integer :: ref
integer :: luatype
luatype = flu_rawgeti(L, LUA_REGISTRYINDEX, ref)
end subroutine aot_reference_to_top