fix: correct clang-format and other files
This commit is contained in:
20
lib/err.h
20
lib/err.h
@@ -55,16 +55,16 @@ void warnfa(int code);
|
||||
void hintfa(int code);
|
||||
|
||||
#if defined(SHOW_TRACE)
|
||||
#define errorf(fmt, ...) \
|
||||
do { \
|
||||
errorf("%s:%s:%d: " fmt, __FILE__, __func__, \
|
||||
__LINE__ __VA_OPT__(, ) __VA_ARGS__); \
|
||||
} while (0)
|
||||
#define fatalf(fmt, ...) \
|
||||
do { \
|
||||
fatalf("%s:%s:%d: " fmt, __FILE__, __func__, \
|
||||
__LINE__ __VA_OPT__(, ) __VA_ARGS__); \
|
||||
} while (0)
|
||||
#define errorf(fmt, ...) \
|
||||
do { \
|
||||
errorf("%s:%s:%d: " fmt, __FILE__, __func__, \
|
||||
__LINE__ __VA_OPT__(, ) __VA_ARGS__); \
|
||||
} while (0)
|
||||
#define fatalf(fmt, ...) \
|
||||
do { \
|
||||
fatalf("%s:%s:%d: " fmt, __FILE__, __func__, \
|
||||
__LINE__ __VA_OPT__(, ) __VA_ARGS__); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user