MCPcopy Create free account
hub / github.com/crownengine/crown / delete_unit

Function delete_unit

src/resource/unit_compiler.cpp:812–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810 }
811
812 void delete_unit(Unit *unit)
813 {
814 auto cur = hash_map::begin(unit->_children);
815 auto end = hash_map::end(unit->_children);
816 for (; cur != end; ++cur) {
817 HASH_MAP_SKIP_HOLE(unit->_children, cur);
818
819 delete_unit(cur->second);
820 }
821
822 CE_DELETE(default_allocator(), unit);
823 }
824
825 void to_flat(FlatJsonObject &obj, const char *json_object, DynamicString &prefix)
826 {

Callers 2

parse_unit_internalFunction · 0.85
~UnitCompilerMethod · 0.85

Calls 2

beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected