-rw-r--r-- | src/util.h | 14 |
diff --git a/src/util.h b/src/util.h index c554c3b7..f69dce89 100644 --- a/src/util.h +++ b/src/util.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2003, 2004, 2005, 2008, 2011, 2012 + Copyright (C) 2003, 2004, 2005, 2008, 2011, 2012, 2024 Rocky Bernstein <rocky@gnu.org> This program is free software: you can redistribute it and/or modify @@ -86,17 +86,17 @@ #define DEBUG 1 #if DEBUG -#define dbg_print(level, s, args...) \ +#define dbg_print(level, s, ...) \ if (opts.debug_level >= level) \ - report(stderr, "%s: "s, __func__ , ##args) + report(stderr, "%s: "s, __func__ , __VA_ARGS__) #else #define dbg_print(level, s, args...) #endif -#define err_exit(fmt, args...) \ - report(stderr, "%s: "fmt, program_name, ##args); \ - myexit(p_cdio, EXIT_FAILURE) - +#define err_exit(fmt, ...) \ + report(stderr, "%s: "fmt, program_name, __VA_ARGS__); \ + myexit(p_cdio, EXIT_FAILURE) + typedef enum { INPUT_AUTO, |