MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ItemObjectError

Function ItemObjectError

Source/Objects/movementobject.cpp:4159–4162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4157extern std::stack<ASContext*> active_context_stack;
4158static void ItemObjectError(int which) __attribute__((noreturn));
4159static void ItemObjectError(int which) {
4160 std::string callstack = active_context_stack.top()->GetCallstack();
4161 FatalError("Error", "There is no item object %d.\n Called from: %s\n", callstack.c_str(), which);
4162}
4163
4164void MovementObject::AttachItemToSlotAttachmentRef(int which, AttachmentType type, bool mirrored, const AttachmentRef* ref, bool from_socket) {
4165 Online* online = Online::Instance();

Callers 2

ASDetachItemMethod · 0.85

Calls 4

GetCallstackMethod · 0.80
topMethod · 0.80
FatalErrorFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected