Returns an object pointer from a handle. Really just ObjGet() with an mprintf()
| 713 | } |
| 714 | // Returns an object pointer from a handle. Really just ObjGet() with an mprintf() |
| 715 | object *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 |
| 724 | void msafe_GetValue(int type, msafe_struct *mstruct) { |
no test coverage detected