(name, suffix=None)
return name[:-len(suffix)].lower()
Converts mjxmacro struct names, e.g. "MJDATA_POINTERS" to "mjdata".
Converts mjxmacro struct names, e.g. "MJDATA_POINTERS" to "mjdata".
Converts mjxmacro struct names e . g . MJDATA_POINTERS to mjdata .
def macro_struct_name(name, suffix=None):
  """Converts mjxmacro struct names, e.g. "MJDATA_POINTERS" to "mjdata"."""
  if suffix is None:
    suffix = _MJXMACRO_SUFFIX
  return name[:-len(suffix)].lower()
def macro_struct_name ( name , suffix = None ) : if suffix is None : suffix = _MJXMACRO_SUFFIX return name [ : - len ( suffix ) ] . lower ( )