simcore 0.1.0

A generic discrete-event simulation framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Macro to wrap a code that will be built if async mode is enabled.
#[macro_export]
macro_rules! async_mode_enabled {
    ($($item:item)*) => {
        $(#[cfg(feature = "async_mode")]
        $item)*
    }
}

/// Macro to wrap a code that will be built if async mode is disabled.
#[macro_export]
macro_rules! async_mode_disabled {
    ($($item:item)*) => {
        $(#[cfg(not(feature = "async_mode"))]
        $item)*
    }
}