nasmlib.h: slightly tidy up the definition of nasm_build_assert()
commitfc427c6fab29c0af1441e5c2f80602d6ebd6c49b
authorH. Peter Anvin <hpa@zytor.com>
Mon, 23 Jan 2017 05:06:05 +0000 (22 21:06 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 23 Jan 2017 05:06:05 +0000 (22 21:06 -0800)
tree698d8e113bc5d3a580c9e0286f56e051dc69c09e
parentcd0c7ddc40f6e12f80f122284f68fe835449e176
nasmlib.h: slightly tidy up the definition of nasm_build_assert()

"Assertion failed" is likely to be redundant with static_assert().

__attribute__((error)) is only guaranteed to work while optimizing, so
do not use it unless __OPTIMIZE__ is defined.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
include/nasmlib.h