File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -923,6 +923,16 @@ MONO_API void mono_unity_gc_disable()
923
923
#endif
924
924
}
925
925
926
+ MONO_API int mono_unity_gc_is_disabled ()
927
+ {
928
+ #if HAVE_BDWGC_GC
929
+ return GC_is_disabled ();
930
+ #else
931
+ g_assert_not_reached ();
932
+ return 0 ;
933
+ #endif
934
+ }
935
+
926
936
MONO_API void
927
937
mono_unity_install_unitytls_interface (unitytls_interface_struct * callbacks )
928
938
{
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ MONO_API void mono_unity_install_unitytls_interface(unitytls_interface_struct* c
153
153
// gc
154
154
MONO_API void mono_unity_gc_enable ();
155
155
MONO_API void mono_unity_gc_disable ();
156
+ MONO_API int mono_unity_gc_is_disabled ();
156
157
157
158
//misc
158
159
MonoAssembly * mono_unity_assembly_get_mscorlib ();
You can’t perform that action at this time.
0 commit comments