add { } while (0) trick to errmsg macros
This commit is contained in:
parent
897e787b5e
commit
132061b4d3
4
Makefile
4
Makefile
@ -663,8 +663,8 @@ uninstall:
|
||||
rm -f $(patsubst %.3,$(MAN3DIR)/%.3,$(notdir $(wildcard */*.3)))
|
||||
rm -f $(LIBDIR)/libowfat.a
|
||||
|
||||
VERSION=libowfat-0.20
|
||||
CURNAME=libowfat-0.17
|
||||
VERSION=libowfat-0.21
|
||||
CURNAME=libowfat-0.20
|
||||
|
||||
tar: clean rename
|
||||
rm -f dep libdep
|
||||
|
4
errmsg.h
4
errmsg.h
@ -23,7 +23,7 @@ void errmsg_warnsys(const char* message, ...);
|
||||
|
||||
#define carp(...) errmsg_warn(__VA_ARGS__,0)
|
||||
#define carpsys(...) errmsg_warnsys(__VA_ARGS__,0)
|
||||
#define die(n,...) { errmsg_warn(__VA_ARGS__,0); exit(n); }
|
||||
#define diesys(n,...) { errmsg_warnsys(__VA_ARGS__,0); exit(n); }
|
||||
#define die(n,...) do { errmsg_warn(__VA_ARGS__,0); exit(n); } while (0)
|
||||
#define diesys(n,...) do { errmsg_warnsys(__VA_ARGS__,0); exit(n); } while (0)
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user