Macro total_space::init_agent_index[][src]

macro_rules! init_agent_index {
    ($name:ident, $agent_type:expr) => { ... };
}

A macro for initializing a global variable containing singleton agent index.

Usage is init_agent_index! { NAME, agent_type }. It will initialize the global variable created by declare_agent_index using the (singleton) agent_type created to initialize the model.