mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Define a NORETURN macro
This commit is contained in:
parent
07bb3c4439
commit
85bb2d388d
6 changed files with 29 additions and 34 deletions
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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue