Macro total_space::agent_index[][src]

macro_rules! agent_index {
    ($name:ident) => { ... };
    ($name:ident[$index:expr]) => { ... };
}

A macro for accessing a global variable containing agent index.

Usage is agent_index!(NAME) for singleton agent types or agent_index!(NAME[instance]) non for singleton agent types, for accessing the global variable declared by declare_agent_index or declare_agent_indices.