generate bindings for non-public extern items

Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
This commit is contained in:
Marin Veršić
2023-07-19 10:44:41 +02:00
committed by Emilio Cobos Álvarez
parent acb1b8d89e
commit 5f235ec199
8 changed files with 130 additions and 73 deletions
+13
View File
@@ -0,0 +1,13 @@
#[no_mangle]
static FIRST: u32 = 10;
#[export_name = "RENAMED"]
static SECOND: u32 = 42;
#[no_mangle]
extern "C" fn first()
{ }
#[export_name = "renamed"]
extern fn second()
{ }