public static int LuaGC(IntPtr L) { if (LuaAPI.IsObject(L, 1)) { int idx = LuaAPI.ToObject(L, 1); ObjectTranslator.Instance.PopObj(idx); } return(0); }
public static object ToObject(IntPtr L, int idx) { int index = LuaAPI.ToObject(L, idx); return(ObjectTranslator.Instance.Get(index)); }