| 45 | // write to a null address |
| 46 | |
| 47 | static inline void util_ThrowIfNull(const cHierAddr& addr, const TSTRING& context) |
| 48 | { |
| 49 | ASSERT(!addr.IsNull()); |
| 50 | if (addr.IsNull()) |
| 51 | { |
| 52 | TSTRING msg(_T("Attempt to access null address")); |
| 53 | if (!context.empty()) |
| 54 | { |
| 55 | msg += _T(" in ") + context; |
| 56 | } |
| 57 | throw eHierDatabase(msg); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | /////////////////////////////////////////////////////////////////////////////// |
| 62 | // util_ReadObject -- this will read the given object from the database from the |
no test coverage detected