@@ -15,14 +15,14 @@ monodroid_get_log_categories ()
1515int
1616monodroid_get_system_property (const char *name, char **value)
1717{
18- return AndroidSystem::monodroid_get_system_property (name, value);
18+ return AndroidSystem::monodroid_get_system_property (name, value);
1919}
2020
2121int
2222monodroid_embedded_assemblies_set_assemblies_prefix (const char *prefix)
2323{
24- embeddedAssemblies.set_assemblies_prefix (prefix);
25- return 0 ;
24+ embeddedAssemblies.set_assemblies_prefix (prefix);
25+ return 0 ;
2626}
2727
2828void
@@ -62,13 +62,13 @@ monodroid_log (LogLevel level, LogCategories category, const char *message)
6262void
6363monodroid_free (void *ptr)
6464{
65- free (ptr);
65+ free (ptr);
6666}
6767
6868int
6969_monodroid_max_gref_get ()
7070{
71- return static_cast <int >(AndroidSystem::get_max_gref_count ());
71+ return static_cast <int >(AndroidSystem::get_max_gref_count ());
7272}
7373
7474int
@@ -81,19 +81,19 @@ _monodroid_gref_get ()
8181void
8282_monodroid_gref_log (const char *message)
8383{
84- osBridge._monodroid_gref_log (message);
84+ osBridge._monodroid_gref_log (message);
8585}
8686
8787int
8888_monodroid_gref_log_new (jobject curHandle, char curType, jobject newHandle, char newType, const char *threadName, int threadId, const char *from, int from_writable)
8989{
90- return osBridge._monodroid_gref_log_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
90+ return osBridge._monodroid_gref_log_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
9191}
9292
9393void
9494_monodroid_gref_log_delete (jobject handle, char type, const char *threadName, int threadId, const char *from, int from_writable)
9595{
96- osBridge._monodroid_gref_log_delete (handle, type, threadName, threadId, from, from_writable);
96+ osBridge._monodroid_gref_log_delete (handle, type, threadName, threadId, from, from_writable);
9797}
9898
9999int
@@ -105,50 +105,50 @@ _monodroid_weak_gref_get ()
105105void
106106_monodroid_weak_gref_new (jobject curHandle, char curType, jobject newHandle, char newType, const char *threadName, int threadId, const char *from, int from_writable)
107107{
108- osBridge._monodroid_weak_gref_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
108+ osBridge._monodroid_weak_gref_new (curHandle, curType, newHandle, newType, threadName, threadId, from, from_writable);
109109}
110110
111111void
112112_monodroid_weak_gref_delete (jobject handle, char type, const char *threadName, int threadId, const char *from, int from_writable)
113113{
114- osBridge._monodroid_weak_gref_delete (handle, type, threadName, threadId, from, from_writable);
114+ osBridge._monodroid_weak_gref_delete (handle, type, threadName, threadId, from, from_writable);
115115}
116116
117117void
118118_monodroid_lref_log_new (int lrefc, jobject handle, char type, const char *threadName, int threadId, const char *from, int from_writable)
119119{
120- osBridge._monodroid_lref_log_new (lrefc, handle, type, threadName, threadId, from, from_writable);
120+ osBridge._monodroid_lref_log_new (lrefc, handle, type, threadName, threadId, from, from_writable);
121121}
122122
123123void
124124_monodroid_lref_log_delete (int lrefc, jobject handle, char type, const char *threadName, int threadId, const char *from, int from_writable)
125125{
126- osBridge._monodroid_lref_log_delete (lrefc, handle, type, threadName, threadId, from, from_writable);
126+ osBridge._monodroid_lref_log_delete (lrefc, handle, type, threadName, threadId, from, from_writable);
127127}
128128
129129void
130130_monodroid_gc_wait_for_bridge_processing ()
131131{
132- mono_gc_wait_for_bridge_processing ();
132+ mono_gc_wait_for_bridge_processing ();
133133}
134134
135135int
136136_monodroid_get_android_api_level ()
137137{
138- return monodroidRuntime.get_android_api_level ();
138+ return monodroidRuntime.get_android_api_level ();
139139}
140140
141141void
142142monodroid_clear_gdb_wait ()
143143{
144- monodroidRuntime.set_monodroid_gdb_wait (false );
144+ monodroidRuntime.set_monodroid_gdb_wait (false );
145145}
146146
147147void *
148148_monodroid_get_identity_hash_code (JNIEnv *env, void *v)
149149{
150- intptr_t rv = env->CallStaticIntMethod (monodroidRuntime.get_java_class_System (), monodroidRuntime.get_java_class_method_System_identityHashCode (), v);
151- return (void *) rv;
150+ intptr_t rv = env->CallStaticIntMethod (monodroidRuntime.get_java_class_System (), monodroidRuntime.get_java_class_method_System_identityHashCode (), v);
151+ return (void *) rv;
152152}
153153
154154void *
@@ -306,7 +306,7 @@ monodroid_dylib_mono_free ([[maybe_unused]] void *mono_imports)
306306 https://github.com/dotnet/java-interop/blob/master/src/java-interop/java-interop-gc-bridge-mono.c#L266
307307
308308 it should also accept libmono_path = nullptr parameter
309- */
309+ */
310310int
311311monodroid_dylib_mono_init (void *mono_imports, [[maybe_unused]] const char *libmono_path)
312312{
0 commit comments