Go to the source code of this file.
◆ ORT_POINTER_CHECK
| #define ORT_POINTER_CHECK |
( |
| ptr | ) |
|
Value: do { \
if(ptr == nullptr) { \
ATH_MSG_ERROR(#ptr << " pointer is null!"); \
return StatusCode::FAILURE; \
} \
} while(0)
Definition at line 13 of file MacroChecks.h.
13#define ORT_POINTER_CHECK( ptr ) \
14 do { \
15 if(ptr == nullptr) { \
16 ATH_MSG_ERROR(#ptr << " pointer is null!"); \
17 return StatusCode::FAILURE; \
18 } \
19 } while(0)