unraw the identifiers
Fixes https://github.com/eqrion/cbindgen/issues/410
This commit is contained in:
committed by
Emilio Cobos Álvarez
parent
11228f6b6f
commit
ed8d94619f
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user