Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison utils.h @ 107:33954a07d013
__unused -> UNUSED
author | David A. Holland |
---|---|
date | Tue, 11 Jun 2013 12:15:47 -0400 |
parents | 83ad94eec98f |
children | 26ee741196d1 |
comparison
equal
deleted
inserted
replaced
106:ecec7c16e3ba | 107:33954a07d013 |
---|---|
33 struct place; | 33 struct place; |
34 | 34 |
35 #if defined(__CLANG__) || defined(__GNUC__) | 35 #if defined(__CLANG__) || defined(__GNUC__) |
36 #define PF(a, b) __attribute__((__format__(__printf__, a, b))) | 36 #define PF(a, b) __attribute__((__format__(__printf__, a, b))) |
37 #define DEAD __attribute__((__noreturn__)) | 37 #define DEAD __attribute__((__noreturn__)) |
38 #define UNUSED __attribute__((__unused__)) | |
38 #else | 39 #else |
39 #define PF(a, b) | 40 #define PF(a, b) |
40 #define DEAD | 41 #define DEAD |
42 #define UNUSED | |
41 #endif | 43 #endif |
42 | 44 |
43 #define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0])) | 45 #define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0])) |
44 | 46 |
45 extern const char ws[]; | 47 extern const char ws[]; |