rustic-c
An extraordinarily horrible idea.
read this
If you want to know how this works, pleaseWhat?
Is Rust too memory-safe and elegant for you?
Do you wish to return to something simpler?
Well, have I got the solution for you, with
the all new c!
macro! Simply insert c!
into your source
and then write C like it's 1999!*
* Terms and conditions apply.
How?
It's simple! Just use c!
and write C!
You can even call back to Rust!
fn a_callback() {
println!("hi from rust");
}
fn main() {
unsafe {
c! {
void func() {
'a_callback();
}
}
}
}