Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
bingbingbingbing
mono
提交
a86b5813
M
mono
项目概览
bingbingbingbing
/
mono
与 Fork 源项目一致
从无法访问的项目Fork
通知
35
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mono
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a86b5813
编写于
1月 28, 2016
作者:
R
Rodrigo Kumpera
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2525 from kumpera/embedding-api
[api] Add API kill switch.
上级
5c3d125e
1dfaf5d3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
28 addition
and
15 deletion
+28
-15
configure.ac
configure.ac
+3
-0
mono/metadata/loader.c
mono/metadata/loader.c
+6
-12
mono/metadata/loader.h
mono/metadata/loader.h
+3
-3
mono/utils/mono-publib.h
mono/utils/mono-publib.h
+16
-0
未找到文件。
configure.ac
浏览文件 @
a86b5813
...
...
@@ -3651,6 +3651,9 @@ AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
#This must always be defined when building the runtime
AC_DEFINE(MONO_INSIDE_RUNTIME,1, [Disable banned functions from being used by the runtime])
mono_build_root=`pwd`
AC_SUBST(mono_build_root)
...
...
mono/metadata/loader.c
浏览文件 @
a86b5813
...
...
@@ -1970,7 +1970,10 @@ mono_get_method_from_token (MonoImage *image, guint32 token, MonoClass *klass,
MonoMethod
*
mono_get_method
(
MonoImage
*
image
,
guint32
token
,
MonoClass
*
klass
)
{
return
mono_get_method_full
(
image
,
token
,
klass
,
NULL
);
MonoError
error
;
MonoMethod
*
result
=
mono_get_method_checked
(
image
,
token
,
klass
,
NULL
,
&
error
);
mono_error_cleanup
(
&
error
);
return
result
;
}
MonoMethod
*
...
...
@@ -1979,11 +1982,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 +2125,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
;
}
...
...
mono/metadata/loader.h
浏览文件 @
a86b5813
...
...
@@ -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
);
...
...
mono/utils/mono-publib.h
浏览文件 @
a86b5813
...
...
@@ -73,6 +73,22 @@ MONO_API void mono_free (void *);
#define MONO_CONST_RETURN const
#if defined (MONO_INSIDE_RUNTIME)
#if defined (__clang__)
#define MONO_RT_EXTERNAL_ONLY __attribute__ ((unavailable("The mono runtime must not call this function")))
#elif defined (__GNUC__)
#define MONO_RT_EXTERNAL_ONLY __attribute__ ((error("The mono runtime must not call this function")))
#else
#define MONO_RT_EXTERNAL_ONLY
#endif
/* __clang__ */
#else
#define MONO_RT_EXTERNAL_ONLY
#endif
/* MONO_INSIDE_RUNTIME */
MONO_END_DECLS
#endif
/* __MONO_PUBLIB_H__ */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录