Example #1
0
        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));
        }
Example #2
0
        public static LuaThread GetLuaThread(IntPtr L, int reference)
        {
            LuaState state = LuaState.Get(L);

            return(state.GetLuaThread(reference));
        }