BT_ASSERT_PRE(): when disabled, use the expression anyway
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 5 Jun 2018 21:50:45 +0000 (17:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:34 +0000 (18:19 -0400)
commitccba3d0bf9fdcb2bbdd141def648a2b181caf038
treef4ea8fdbfc03fa0459d6a5c2eec3517857a005bc
parente4855f38986f0a21bf59de66fd0b1d240cb3e3e3
BT_ASSERT_PRE(): when disabled, use the expression anyway

Apply to the BT_ASSERT_PRE() macro (and its derivatives) the same trick
used for BT_ASSERT() to use the condition without evaluating it when the
macro is disabled. This avoids unused variable compiler warnings in a
production build.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
include/babeltrace/assert-pre-internal.h
This page took 0.025503 seconds and 4 git commands to generate.