nasmlib: Add generic panic() macro, and no-return nasm_panic()
commitf0d92fd19ad01b99a93a766f482d2ecaa3ca91a8
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 3 Feb 2016 00:01:43 +0000 (2 16:01 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 3 Feb 2016 00:01:43 +0000 (2 16:01 -0800)
treecc33b3d7293bc16f8b34693d319eb11894f7d8a9
parent5a8c424d0c4b63d14eb1120475ebc3dee38bac8c
nasmlib: Add generic panic() macro, and no-return nasm_panic()

Add a generic panic() macro which we can simply insert where an
internal error happens.  Also, create a nasm_panic() function
the only purpose of which is to let the compiler know that we will
never return after a panic.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
compiler.h
nasmlib.c
nasmlib.h