You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ABSL_DIE_IF_NULL behaves as CHECK_NE against nullptr...
Hence the check is made also in release mode. It would be cool to have a version that behaves as DCHECK_NE; that is, something like ABSL_DIE_IF_NULL_DEBUG which behaves like ABSL_DIE_IF_NULL in debug mode, but compiles to a noop in release mode.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The documentation of
ABSL_DIE_IF_NULL
states:Hence the check is made also in release mode. It would be cool to have a version that behaves as
DCHECK_NE
; that is, something likeABSL_DIE_IF_NULL_DEBUG
which behaves likeABSL_DIE_IF_NULL
in debug mode, but compiles to a noop in release mode.Beta Was this translation helpful? Give feedback.
All reactions