]> granicus.if.org Git - zfs/commit
Fix ASSERT macros to not over-expand
authorPaul Dagnelie <paulcd2000@gmail.com>
Thu, 4 Oct 2018 03:16:45 +0000 (20:16 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 4 Oct 2018 03:16:45 +0000 (20:16 -0700)
commit6e8b268875ff2bad66b797d1094a6eb1b694206a
tree59d03bfefdb5a6397fc9ebe8afa37d78402efaea
parent95542372e62935e91cec430fbadf9420887fc5d8
Fix ASSERT macros to not over-expand

The code reuse in the definitions of the ASSERT and VERIFY macros result
in expansion of their arguments before they are stringified, which
produces ugly and undesirable output.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #7884
include/spl/sys/debug.h
lib/libspl/include/assert.h