Open
Description
I'm trying to hook!
printf
but the hook!
macro doesn't allow it:
src/lib.rs:25:45: 25:48 error: expected ident, found ...
src/lib.rs:25 unsafe fn printf(format: *const c_char, ...) -> c_int => custom_printf {
However, the compiler is perfectly happy with:
extern {
fn printf(format: *const c_char, ...) -> c_int;
}
so perhaps it's just that hook!
's macro definition needs to be updated to support varargs? But I suppose that real!
might need to be updated to support calling varargs functions too.
Metadata
Metadata
Assignees
Labels
No labels