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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:05:45 +0000 (00:05 -0400)
commitebbc3f14febbf0152c4d98dac9abecc898dfae08
tree49212a4792386a449540965cf2bf647ccd8301fa
parentcdc4693da047ef54d55bf17d803605e4880b734e
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.027394 seconds and 4 git commands to generate.