Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
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,
v )
Value:
if (x == nullptr) { \
LOG(DFATAL) << #x << " == NULL"; \
return v; \
}

Definition at line 26 of file return_macros.h.