MCPcopy Create free account
hub / github.com/DFHack/dfhack / destroy

Method destroy

library/DataDefs.cpp:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool type_identity::destroy(void *obj) const {
77 if (can_allocate() && obj)
78 return do_destroy(obj);
79 else
80 return false;
81}
82
83void *enum_identity::do_allocate() const {
84 size_t sz = byte_size();

Callers 1

meta_deleteFunction · 0.80

Calls 2

can_allocateFunction · 0.85
do_destroyFunction · 0.85

Tested by

no test coverage detected