code: func yaml_emitter_check_empty_mapping(emitter *yaml_emitter_t) bool {
  	if len(emitter.events)-emitter.events_head < 2 {
  		return false
  	}
  	return emitter.events[emitter.events_head].typ == yaml_MAPPING_START_EVENT &&
  		emitter.events[emitter.events_head+1].typ == yaml_MAPPING_END_EVENT
  }
docs: // Check if the next events represent an empty mapping.