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

Function instantiate

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

Source from the content-addressed store, hash-verified

478 public:
479 bool can_instantiate() const { return can_allocate(); }
480 virtual_ptr instantiate() const { return can_instantiate() ? (virtual_ptr)do_allocate() : NULL; }
481 static virtual_ptr clone(virtual_ptr obj);
482
483 public:

Callers

nothing calls this directly

Calls 1

do_allocateFunction · 0.85

Tested by

no test coverage detected