MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / VALIDATE_OBJECT

Function VALIDATE_OBJECT

Descent3/multisafe.cpp:715–721  ·  view source on GitHub ↗

Returns an object pointer from a handle. Really just ObjGet() with an mprintf()

Source from the content-addressed store, hash-verified

713}
714// Returns an object pointer from a handle. Really just ObjGet() with an mprintf()
715object *VALIDATE_OBJECT(int handle) {
716 object *objp = ObjGet(handle);
717 if (!objp) {
718 mprintf(0, "Invalid object passed to multisafe.\n");
719 }
720 return objp;
721}
722
723// Gets a value for the calling party
724void msafe_GetValue(int type, msafe_struct *mstruct) {

Callers 2

msafe_GetValueFunction · 0.85
msafe_CallFunctionFunction · 0.85

Calls 1

ObjGetFunction · 0.85

Tested by

no test coverage detected