static int _m_CreateDelegate_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { string _eventType = LuaAPI.lua_tostring(L, 1); XLua.LuaFunction _func = (XLua.LuaFunction)translator.GetObject(L, 2, typeof(XLua.LuaFunction)); System.Delegate gen_ret = XLuaMessenger.CreateDelegate(_eventType, _func); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }