示例#1
0
 /// <summary>[-0, +1, m] Pushes a type reference into the stack</summary>
 internal static void pushType(lua.State L, Type t)
 {
     Debug.Assert(Lua.GetOwner(L) != null && t != null);
     luaL.checkstack(L, 2, "ObjectTranslator.pushType");
     luaclr.newref(L, new ProxyType(t));
     luaL.getmetatable(L, "luaNet_class");
     Debug.Assert(lua.istable(L, -1));
     lua.setmetatable(L, -2);
 }