OR-Tools  8.2
return_macros.h File Reference

Go to the source code of this file.

Macros

#define RETURN_IF_NULL(x)
 
#define RETURN_VALUE_IF_NULL(x, v)
 

Macro Definition Documentation

◆ RETURN_IF_NULL

#define RETURN_IF_NULL (   x)
Value:
if (x == nullptr) { \
LOG(DFATAL) << #x << " == NULL"; \
return; \
}

Definition at line 20 of file return_macros.h.

◆ RETURN_VALUE_IF_NULL

#define RETURN_VALUE_IF_NULL (   x,
 
)
Value:
if (x == nullptr) { \
LOG(DFATAL) << #x << " == NULL"; \
return v; \
}

Definition at line 26 of file return_macros.h.