static int _m_Compare(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCETRuntime.ReferenceCollectorDataComparer gen_to_be_invoked = (DCETRuntime.ReferenceCollectorDataComparer)translator.FastGetCSObj(L, 1); { DCETRuntime.ReferenceCollectorData _x = (DCETRuntime.ReferenceCollectorData)translator.GetObject(L, 2, typeof(DCETRuntime.ReferenceCollectorData)); DCETRuntime.ReferenceCollectorData _y = (DCETRuntime.ReferenceCollectorData)translator.GetObject(L, 3, typeof(DCETRuntime.ReferenceCollectorData)); int gen_ret = gen_to_be_invoked.Compare( _x, _y); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { DCETRuntime.ReferenceCollectorDataComparer gen_ret = new DCETRuntime.ReferenceCollectorDataComparer(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to DCETRuntime.ReferenceCollectorDataComparer constructor!")); }