static int _g_get_TokenType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MikuLuaProfiler.Token gen_to_be_invoked = (MikuLuaProfiler.Token)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.TokenType); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _m_EqualsToToken(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MikuLuaProfiler.Token gen_to_be_invoked = (MikuLuaProfiler.Token)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _other = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.EqualsToToken(_other); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <MikuLuaProfiler.Token>(L, 2)) { MikuLuaProfiler.Token _other = (MikuLuaProfiler.Token)translator.GetObject(L, 2, typeof(MikuLuaProfiler.Token)); bool gen_ret = gen_to_be_invoked.EqualsToToken(_other); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <MikuLuaProfiler.TK>(L, 2)) { MikuLuaProfiler.TK _other; translator.Get(L, 2, out _other); bool gen_ret = gen_to_be_invoked.EqualsToToken(_other); LuaAPI.lua_pushboolean(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.Token.EqualsToToken!")); }
static int _m_GetLookAhead(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MikuLuaProfiler.LLex gen_to_be_invoked = (MikuLuaProfiler.LLex)translator.FastGetCSObj(L, 1); { MikuLuaProfiler.Token gen_ret = gen_to_be_invoked.GetLookAhead( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }