static int _s_set_needShow(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MikuLuaProfiler.Sample gen_to_be_invoked = (MikuLuaProfiler.Sample)translator.FastGetCSObj(L, 1); gen_to_be_invoked.needShow = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _s_set_childs(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MikuLuaProfiler.Sample gen_to_be_invoked = (MikuLuaProfiler.Sample)translator.FastGetCSObj(L, 1); gen_to_be_invoked.childs = (MikuLuaProfiler.MList <MikuLuaProfiler.Sample>)translator.GetObject(L, 2, typeof(MikuLuaProfiler.MList <MikuLuaProfiler.Sample>)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_captureUrl(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MikuLuaProfiler.Sample gen_to_be_invoked = (MikuLuaProfiler.Sample)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.captureUrl); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { MikuLuaProfiler.Sample gen_ret = new MikuLuaProfiler.Sample(); 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 MikuLuaProfiler.Sample constructor!")); }
static int _m_Restore(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MikuLuaProfiler.Sample gen_to_be_invoked = (MikuLuaProfiler.Sample)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Restore( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_CheckSampleValid(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MikuLuaProfiler.Sample gen_to_be_invoked = (MikuLuaProfiler.Sample)translator.FastGetCSObj(L, 1); { bool gen_ret = gen_to_be_invoked.CheckSampleValid( ); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Create_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { long _time = LuaAPI.lua_toint64(L, 1); int _memory = LuaAPI.xlua_tointeger(L, 2); string _name = LuaAPI.lua_tostring(L, 3); MikuLuaProfiler.Sample gen_ret = MikuLuaProfiler.Sample.Create(_time, _memory, _name); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }