mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-07-21 18:02:50 +02:00
11 lines
192 B
Rust
11 lines
192 B
Rust
pub const FOO: i32 = 10;
|
|
pub const BAR: &'static str = "hello world";
|
|
pub const ZOM: f32 = 3.14;
|
|
|
|
#[repr(C)]
|
|
struct Foo {
|
|
x: [i32; FOO],
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn root(x: Foo) { }
|