Attribute Macro script_globals

Source
#[script_globals]
Expand description

Derive macro for generating script globals from an impl block.

Generates a registration function with visibility determined by the highest visibility in the impl block.

Does not support generics.

Arguments:

  • name: the name to use to suffix the generated function, i.e. test_fn will generate register_test_fn. Defaults to globals`
  • bms_core_path: If set the path to override bms imports, normally only used internally