language-rust icon indicating copy to clipboard operation
language-rust copied to clipboard

C-compatible variadics

Open harpocrates opened this issue 6 years ago • 0 comments

The following should parse, but it doesn't currently:

pub unsafe extern "C" fn test(_: i32, ap: ...) { }
pub unsafe extern "C" fn test_valist_forward(n: u64, mut ap: ...) -> f64 {
    rust_valist_interesting_average(n, ap.as_va_list())
}

harpocrates avatar Nov 01 '19 19:11 harpocrates