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:
12
nmap_error.h
12
nmap_error.h
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user