Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Kumpera <kumpera@gmail.com>2016-01-27 23:03:26 +0300
committerRodrigo Kumpera <kumpera@gmail.com>2016-01-27 23:03:26 +0300
commitb118d2593e5f9eb343fd1f042c7fcb7860ab30c3 (patch)
tree3fd57db2fe66a389e575cdc9a2ca0bdfdf1e1cdc
parentafa75917e70463663422d22ab4c9a633f930a7af (diff)
[api] Mark external Only: mono_get_method, mono_get_method_full and mono_get_method_constrained.
-rw-r--r--mono/metadata/loader.c13
-rw-r--r--mono/metadata/loader.h6
2 files changed, 5 insertions, 14 deletions
diff --git a/mono/metadata/loader.c b/mono/metadata/loader.c
index 55a02988f30..f8622fae131 100644
--- a/mono/metadata/loader.c
+++ b/mono/metadata/loader.c
@@ -1979,11 +1979,7 @@ mono_get_method_full (MonoImage *image, guint32 token, MonoClass *klass,
{
MonoError error;
MonoMethod *result = mono_get_method_checked (image, token, klass, context, &error);
- mono_loader_assert_no_error ();
- if (!mono_error_ok (&error)) {
- mono_loader_set_error_from_mono_error (&error);
- mono_error_cleanup (&error);
- }
+ mono_error_cleanup (&error);
return result;
}
@@ -2126,12 +2122,7 @@ mono_get_method_constrained (MonoImage *image, guint32 token, MonoClass *constra
{
MonoError error;
MonoMethod *result = mono_get_method_constrained_checked (image, token, constrained_class, context, cil_method, &error);
-
- mono_loader_assert_no_error ();
- if (!mono_error_ok (&error)) {
- mono_loader_set_error_from_mono_error (&error);
- mono_error_cleanup (&error);
- }
+ mono_error_cleanup (&error);
return result;
}
diff --git a/mono/metadata/loader.h b/mono/metadata/loader.h
index 74d82817bb8..6999f81961d 100644
--- a/mono/metadata/loader.h
+++ b/mono/metadata/loader.h
@@ -8,14 +8,14 @@ MONO_BEGIN_DECLS
typedef mono_bool (*MonoStackWalk) (MonoMethod *method, int32_t native_offset, int32_t il_offset, mono_bool managed, void* data);
-MONO_API MonoMethod *
+MONO_RT_EXTERNAL_ONLY MONO_API MonoMethod *
mono_get_method (MonoImage *image, uint32_t token, MonoClass *klass);
-MONO_API MonoMethod *
+MONO_RT_EXTERNAL_ONLY MONO_API MonoMethod *
mono_get_method_full (MonoImage *image, uint32_t token, MonoClass *klass,
MonoGenericContext *context);
-MONO_API MonoMethod *
+MONO_RT_EXTERNAL_ONLY MONO_API MonoMethod *
mono_get_method_constrained (MonoImage *image, uint32_t token, MonoClass *constrained_class,
MonoGenericContext *context, MonoMethod **cil_method);