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

Function can_allocate

library/include/DataDefs.h:89–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 bool do_destroy_pod(void *obj) const;
88
89 virtual bool can_allocate() const { return true; }
90 virtual void *do_allocate() const { return do_allocate_pod(); }
91 virtual bool do_copy(void *tgt, const void *src) const { do_copy_pod(tgt, src); return true; }
92 virtual bool do_destroy(void *obj) const { return do_destroy_pod(obj); }

Callers 4

allocateMethod · 0.85
copyMethod · 0.85
destroyMethod · 0.85
DataDefs.hFile · 0.85

Calls 1

vtable_ptrFunction · 0.85

Tested by

no test coverage detected