Skip to content

Commit

Permalink
Disable one more bit of code by default
Browse files Browse the repository at this point in the history
  • Loading branch information
grendello committed May 16, 2022
1 parent 894be83 commit e6cd07b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/monodroid/jni/monodroid-glue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2491,6 +2491,7 @@ MonodroidRuntime::Java_mono_android_Runtime_register (JNIEnv *env, jstring manag
total_time_index = internal_timing->start_event (TimingEventKind::RuntimeRegister);
}

#if defined (ENABLE_MARSHAL_METHODS)
const char *mt_ptr = env->GetStringUTFChars (managedType, nullptr);
log_info (LOG_DEFAULT, "[TESTING] Registering managed type: '%s'", mt_ptr);
bool ignore = strcmp (mt_ptr, "HelloAndroid.MainActivity, HelloAndroid") == 0;
Expand All @@ -2500,6 +2501,7 @@ MonodroidRuntime::Java_mono_android_Runtime_register (JNIEnv *env, jstring manag
log_info (LOG_DEFAULT, "[TESTING] This type's registration is ignored");
return;
}
#endif

jsize managedType_len = env->GetStringLength (managedType);
const jchar *managedType_ptr = env->GetStringChars (managedType, nullptr);
Expand Down

0 comments on commit e6cd07b

Please sign in to comment.