summaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-14 14:21:16 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-14 15:42:03 -0800
commitb7f24e7715d8fdca52fda7fb9df1b70d8d4bbc6b (patch)
tree15669a93ec7bc21743b0928d04b7861180082cb6 /travis
parentc3c6cea83804e7ba36b31d15ba25954ea3a5bdfd (diff)
downloadnasm-b7f24e7715d8fdca52fda7fb9df1b70d8d4bbc6b.tar.gz
nasm_assert(): try to run at compile time if possible
Try to make nasm_assert() do a static assert if the argument can be evaluated at compile time by any particular compiler. We also provide nasm_try_static_assert() which will assert a compile-time expression if and only if we can determine we have a constant at compile time *and* we know that the compiler has a way to handle it. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'travis')
0 files changed, 0 insertions, 0 deletions