summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono/eolian/mono/klass.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-15 17:51:20 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-01-15 17:51:20 +0900
commite2589e3b48c4d05db198f7729708ac8bca6f42be (patch)
treefd26c306953a1cf97cd8fd1ea5b7267cbc51d509 /src/bin/eolian_mono/eolian/mono/klass.hh
parent130fe0bf7829d1bd8caae4df084c2975ff246a64 (diff)
efl-mono: Only raise exception for managed errors.
Summary: Previously, any unhandled Eina_Error would cause an exception to be thrown when the control returned to C#. This commit changes this behavior to only raise it when an exception went unhandled from a C# callback back to C, like in an event handler, for example. Test Plan: run tests Reviewers: segfaultxavi, Jaehyun_Cho, felipealmeida Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7537
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/klass.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/klass.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh
index 907ac97..a22a5a0 100644
--- a/src/bin/eolian_mono/eolian/mono/klass.hh
+++ b/src/bin/eolian_mono/eolian/mono/klass.hh
@@ -579,7 +579,7 @@ struct klass
579 << scope_tab << scope_tab << scope_tab << "Efl.Eo.Globals.data_set(this);\n" 579 << scope_tab << scope_tab << scope_tab << "Efl.Eo.Globals.data_set(this);\n"
580 << scope_tab << scope_tab << "}\n" 580 << scope_tab << scope_tab << "}\n"
581 << scope_tab << scope_tab << "handle = Efl.Eo.Globals.instantiate_end(handle);\n" 581 << scope_tab << scope_tab << "handle = Efl.Eo.Globals.instantiate_end(handle);\n"
582 << scope_tab << scope_tab << "Eina.Error.RaiseIfOccurred();\n" 582 << scope_tab << scope_tab << "Eina.Error.RaiseIfUnhandledException();\n"
583 << scope_tab << "}\n" 583 << scope_tab << "}\n"
584 584
585 << scope_tab << "///<summary>Constructs an instance from a native pointer.</summary>\n" 585 << scope_tab << "///<summary>Constructs an instance from a native pointer.</summary>\n"
@@ -718,7 +718,7 @@ struct klass
718 << scope_tab << scope_tab << scope_tab << scope_tab << "Eina.Log.Error($\"Failed to add event proxy for event {key}\");\n" 718 << scope_tab << scope_tab << scope_tab << scope_tab << "Eina.Log.Error($\"Failed to add event proxy for event {key}\");\n"
719 << scope_tab << scope_tab << scope_tab << scope_tab << "return false;\n" 719 << scope_tab << scope_tab << scope_tab << scope_tab << "return false;\n"
720 << scope_tab << scope_tab << scope_tab << "}\n" 720 << scope_tab << scope_tab << scope_tab << "}\n"
721 << scope_tab << scope_tab << scope_tab << "Eina.Error.RaiseIfOccurred();\n" 721 << scope_tab << scope_tab << scope_tab << "Eina.Error.RaiseIfUnhandledException();\n"
722 << scope_tab << scope_tab << "} \n" 722 << scope_tab << scope_tab << "} \n"
723 << scope_tab << scope_tab << "event_cb_count[key]++;\n" 723 << scope_tab << scope_tab << "event_cb_count[key]++;\n"
724 << scope_tab << scope_tab << "return true;\n" 724 << scope_tab << scope_tab << "return true;\n"
@@ -740,7 +740,7 @@ struct klass
740 << scope_tab << scope_tab << scope_tab << scope_tab << "Eina.Log.Error($\"Failed to remove event proxy for event {key}\");\n" 740 << scope_tab << scope_tab << scope_tab << scope_tab << "Eina.Log.Error($\"Failed to remove event proxy for event {key}\");\n"
741 << scope_tab << scope_tab << scope_tab << scope_tab << "return false;\n" 741 << scope_tab << scope_tab << scope_tab << scope_tab << "return false;\n"
742 << scope_tab << scope_tab << scope_tab << "}\n" 742 << scope_tab << scope_tab << scope_tab << "}\n"
743 << scope_tab << scope_tab << scope_tab << "Eina.Error.RaiseIfOccurred();\n" 743 << scope_tab << scope_tab << scope_tab << "Eina.Error.RaiseIfUnhandledException();\n"
744 << scope_tab << scope_tab << "} else if (event_count == 0) {\n" 744 << scope_tab << scope_tab << "} else if (event_count == 0) {\n"
745 << scope_tab << scope_tab << scope_tab << "Eina.Log.Error($\"Trying to remove proxy for event {key} when there is nothing registered.\");\n" 745 << scope_tab << scope_tab << scope_tab << "Eina.Log.Error($\"Trying to remove proxy for event {key} when there is nothing registered.\");\n"
746 << scope_tab << scope_tab << scope_tab << "return false;\n" 746 << scope_tab << scope_tab << scope_tab << "return false;\n"