Пример #1
0
        public static void luaE_freethread(lua_State L, lua_State L1)
        {
            LX l = fromstate(L).l;

            luaF_close(L1, 0);   /* close all upvalues for this thread */
            lua_assert(L1.openupval == null);
            luai_userstatefree(L, L1);
            freestack(L1);
            luaM_free(L, l);
        }
Пример #2
0
 public LG()
 {
     l      = luaM_newobject <LX> (null);
     l.l.lg = this;
     g      = luaM_newobject <global_State> (null);
 }