Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
bingbingbingbing
mono
提交
467627fa
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,发现更多精彩内容 >>
提交
467627fa
编写于
5月 24, 2018
作者:
L
Lukasz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add mono_unity_gc_enable and mono_unity_gc_disable
上级
34dc12d5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
0 deletion
+27
-0
mono/metadata/unity-utils.c
mono/metadata/unity-utils.c
+23
-0
mono/metadata/unity-utils.h
mono/metadata/unity-utils.h
+4
-0
未找到文件。
mono/metadata/unity-utils.c
浏览文件 @
467627fa
...
...
@@ -30,6 +30,10 @@
#include <mono/metadata/tokentype.h>
#include <mono/utils/mono-string.h>
#if HAVE_BDWGC_GC
#include <external/bdwgc/include/gc.h>
#endif
#include <glib.h>
#ifdef WIN32
...
...
@@ -900,6 +904,25 @@ mono_unity_get_unitytls_interface()
return
gUnitytlsInterface
;
}
// gc
MONO_API
void
mono_unity_gc_enable
()
{
#if HAVE_BDWGC_GC
GC_enable
();
#else
g_assert_not_reached
();
#endif
}
MONO_API
void
mono_unity_gc_disable
()
{
#if HAVE_BDWGC_GC
GC_disable
();
#else
g_assert_not_reached
();
#endif
}
MONO_API
void
mono_unity_install_unitytls_interface
(
unitytls_interface_struct
*
callbacks
)
{
...
...
mono/metadata/unity-utils.h
浏览文件 @
467627fa
...
...
@@ -150,6 +150,10 @@ typedef struct unitytls_interface_struct unitytls_interface_struct;
MONO_API
unitytls_interface_struct
*
mono_unity_get_unitytls_interface
();
MONO_API
void
mono_unity_install_unitytls_interface
(
unitytls_interface_struct
*
callbacks
);
// gc
MONO_API
void
mono_unity_gc_enable
();
MONO_API
void
mono_unity_gc_disable
();
//misc
MonoAssembly
*
mono_unity_assembly_get_mscorlib
();
MonoImage
*
mono_unity_image_get_mscorlib
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录