unraw the identifiers

Fixes https://github.com/eqrion/cbindgen/issues/410
This commit is contained in:
Olivier Goffart
2021-12-06 22:07:54 +01:00
committed by Emilio Cobos Álvarez
parent 11228f6b6f
commit ed8d94619f
23 changed files with 297 additions and 32 deletions
+20
View File
@@ -0,0 +1,20 @@
#[repr(u8)]
pub enum r#Enum {
r#a,
r#b,
}
#[repr(C)]
pub struct r#Struct {
r#field: r#Enum,
}
#[no_mangle]
pub extern "C" fn r#fn(r#arg: r#Struct) {
println!("Hello world");
}
pub mod r#mod {
#[no_mangle]
pub static r#STATIC: r#Enum = r#Enum::r#b;
}