(jni_env: *mut JNIEnv,
this: jobject)
| 23 | #[no_mangle] |
| 24 | #[allow(non_snake_case)] |
| 25 | pub unsafe extern "C" fn Java_java_lang_Throwable_getOurStackTrace(jni_env: *mut JNIEnv, |
| 26 | this: jobject) -> jobject { |
| 27 | if log_enabled!(Debug) { |
| 28 | debug!("Asking for trace from {}", class_sig_from_obj(jni_env, this).unwrap_or("<unknown>".to_string())); |
| 29 | } |
| 30 | return match populate_trace_elements(jni_env, this) { |
| 31 | Result::Err(err_str) => { |
| 32 | debug!("Stack elem populate err: {}", err_str); |
| 33 | ptr::null_mut() |
| 34 | }, |
| 35 | Result::Ok(ret) => ret |
| 36 | }; |
| 37 | } |
| 38 | |
| 39 | #[no_mangle] |
| 40 | #[allow(non_snake_case)] |
nothing calls this directly
no test coverage detected