Closed CertainLach closed 4 years ago
Yes, the macro expects a function type without any named parameters:
static_detour! {
static JVM_DefineClassWithSourceHook: unsafe extern "system" fn(env: JNIEnv, name: *const i8, loader: jobject, buf: usize, len: jsize, pd: jobject, source: *const i8) -> jclass;
}
--->
static_detour! {
static JVM_DefineClassWithSourceHook: unsafe extern "system" fn(JNIEnv, *const i8, jobject, usize, jsize, jobject, *const i8) -> jclass;
}
Although it highlights a potential improvement, support for optional named parameters may be of interest.
Missed that, thank you
Macro backtrace: