Define YAML_LOAD_OPT3

Define Documentation

YAML_LOAD_OPT3(_param_str, _varname, _type)

Optional load: _param_str._varname = cfg[_varname] (or keep the current default when the key is absent).

Parameters:
  • _param_str – Struct whose field will receive the value.

  • _varname – Field / YAML key name (used as both identifier and string).

  • _type – C++ type for the getOrDefault call.