public static LuaThread ToLuaThread(IntPtr L, int stackPos) { stackPos = LuaDLL.abs_index(L, stackPos); LuaState state = LuaState.Get(L); LuaDLL.lua_pushvalue(L, stackPos); int reference = LuaDLL.toluaL_ref(L); return(state.GetLuaThread(reference)); }
public static LuaThread GetLuaThread(IntPtr L, int reference) { LuaState state = LuaState.Get(L); return(state.GetLuaThread(reference)); }