Copy an existing Lua state.
Warning
This copies the pointer to an existing Lua state, not the Lua state itself. Modifying L via the flu bindings will modify the same Lua state as pointed to by lua_state.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(in) | :: | lua_state |
function flu_copyptr(lua_state) result(L) type(flu_State) :: L type(c_ptr), intent(in) :: lua_state L%state = lua_state end function flu_copyptr