macro_rules! constant {
    ($x:path) => { ... };
}
Expand description

Register a constant with an InventoryBuilder.

You must also annotate the constant with #[ffi_constant].

§Example

use interoptopus::{ffi_constant, Inventory, InventoryBuilder, constant};

#[ffi_constant]
pub const MY_CONSTANT: u32 = 123;

pub fn inventory() -> Inventory {
    InventoryBuilder::new()
        .register(constant!(MY_CONSTANT))
        .inventory()
}