We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 638bac5 commit c0e300bCopy full SHA for c0e300b
1 file changed
src/include/util.h
@@ -32,13 +32,24 @@
32
*/
33
#define LENGTH(ARR) (sizeof(ARR) / sizeof((ARR)[0]))
34
35
+/*
36
+ * Print a warning with the specified format, along with the program name and a
37
+ * newline.
38
+ */
39
+#define WRN(...) \
40
+ do { \
41
+ fprintf(stderr, "bin-graph: Warning: "); \
42
+ fprintf(stderr, __VA_ARGS__); \
43
+ fputc('\n', stderr); \
44
+ } while (0)
45
+
46
/*
47
* Print an error with the specified format, along with the program name and a
48
* newline.
49
50
#define ERR(...) \
51
do { \
- fprintf(stderr, "bin-graph: "); \
52
+ fprintf(stderr, "bin-graph: Error: "); \
53
fprintf(stderr, __VA_ARGS__); \
54
fputc('\n', stderr); \
55
} while (0)
0 commit comments