static int _m_LogException(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <System.Exception>(L, 2)) { System.Exception _exception = (System.Exception)translator.GetObject(L, 2, typeof(System.Exception)); gen_to_be_invoked.LogException(_exception); return(0); } if (gen_param_count == 3 && translator.Assignable <System.Exception>(L, 2) && translator.Assignable <UnityEngine.Object>(L, 3)) { System.Exception _exception = (System.Exception)translator.GetObject(L, 2, typeof(System.Exception)); UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); gen_to_be_invoked.LogException(_exception, _context); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.LogException!")); }
static StackObject *LogException_19(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Exception @exception = (System.Exception) typeof(System.Exception).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Logger instance_of_this_method = (UnityEngine.Logger) typeof(UnityEngine.Logger).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.LogException(@exception); return(__ret); }