示例#1
0
文件: ToLua.cs 项目: zhangf911/tolua
        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));
        }
示例#2
0
        public static LuaThread GetLuaThread(IntPtr L, int reference)
        {
            LuaState state = LuaState.Get(L);

            return(state.GetLuaThread(reference));
        }