| 1 |
/* |
| 2 |
* SPDX-License-Identifier: Apache-2.0 |
| 3 |
* Copyright © 2024 Intel Corporation |
| 4 |
*/ |
| 5 |
|
| 6 |
mod sub; |
| 7 |
use sub::MyStruct; |
| 8 |
|
| 9 |
#[no_mangle] |
| 10 |
pub extern "C" fn print(x: &MyStruct) { |
| 11 |
println!("A thing has a cost of {} and a power of {}", x.cost, x.power); |
| 12 |
} |