add NORETURN_PTR for function pointers
Some compilers (including at least MSVC and ARM RVDS) supports NORETURN on function declarations, but not on function pointers. This patch makes it possible to define NORETURN for these compilers, by splitting the NORETURN macro into two - one for function declarations and one for function pointers. Signed-off-by: NErik Faye-Lund <kusmabite@gmail.com> Signed-off-by: NJeff King <peff@peff.net>
Showing
想要评论请 注册 或 登录