ATLAS Offline Software
Loading...
Searching...
No Matches
MacroChecks.h File Reference
Include dependency graph for MacroChecks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ORT_POINTER_CHECK(ptr)

Macro Definition Documentation

◆ 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)