1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Define a NORETURN macro

This commit is contained in:
dmiller
2014-11-17 13:25:32 +00:00
parent 07bb3c4439
commit 85bb2d388d
6 changed files with 29 additions and 34 deletions

View File

@@ -154,20 +154,12 @@
extern "C" {
#endif
#ifdef WIN32
__declspec(noreturn)
#endif
void fatal(const char *fmt, ...)
__attribute__ ((noreturn))
NORETURN void fatal(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));
void error(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));
#ifdef WIN32
__declspec(noreturn)
#endif
void pfatal(const char *err, ...)
__attribute__ ((noreturn))
NORETURN void pfatal(const char *err, ...)
__attribute__ ((format (printf, 1, 2)));
void gh_perror(const char *err, ...)
__attribute__ ((format (printf, 1, 2)));