提交 3ca6bb19 编写于 作者: A Alex Thibodeau

Adding in missing functions that were added to 4.x mono

上级 e20cf158
......@@ -860,4 +860,6 @@ mono_profiler_create
mono_unity_install_unitytls_interface
mono_unity_gc_enable
mono_unity_gc_disable
mono_unity_gc_is_disabled
\ No newline at end of file
mono_unity_gc_is_disabled
mono_custom_attrs_construct_by_type
mono_unity_error_convert_to_exception
\ No newline at end of file
......@@ -362,3 +362,13 @@ int mono_unity_gc_is_disabled()
return 0;
#endif
}
MonoArray* mono_custom_attrs_construct_by_type(MonoCustomAttrInfo* cinfo, MonoClass* attr_klass, MonoError* error)
{
return mono_custom_attrs_construct(cinfo);
}
MonoException* mono_unity_error_convert_to_exception(MonoError* error)
{
return NULL;
}
......@@ -4,6 +4,8 @@
#include <stdio.h>
#include <mono/metadata/object.h>
#include <mono/metadata/appdomain.h>
#include <mono/metadata/reflection.h>
#include <mono/utils/mono-error.h>
/**
* Custom exit function, called instead of system exit()
......@@ -55,4 +57,7 @@ void mono_unity_gc_enable();
void mono_unity_gc_disable();
int mono_unity_gc_is_disabled();
MonoArray* mono_custom_attrs_construct_by_type(MonoCustomAttrInfo* cinfo, MonoClass* attr_klass, MonoError* error);
MonoException* mono_unity_error_convert_to_exception(MonoError* error);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册