Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
76
bool type_identity::destroy(void *obj) const {
77
if (can_allocate() && obj)
78
return do_destroy(obj);
79
else
80
return false;
81
}
82
83
void *enum_identity::do_allocate() const {
84
size_t sz = byte_size();
Callers
1
meta_delete
Function · 0.80
Calls
2
can_allocate
Function · 0.85
do_destroy
Function · 0.85
Tested by
no test coverage detected