mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[wpiutil] Logger: paren-protect instance usage in macro (#4384)
This commit is contained in:
@@ -61,7 +61,7 @@ class Logger {
|
||||
};
|
||||
|
||||
#define WPI_LOG(logger_inst, level, format, ...) \
|
||||
logger_inst.Log(level, __FILE__, __LINE__, FMT_STRING(format), __VA_ARGS__)
|
||||
(logger_inst).Log(level, __FILE__, __LINE__, FMT_STRING(format), __VA_ARGS__)
|
||||
|
||||
#define WPI_ERROR(inst, format, ...) \
|
||||
WPI_LOG(inst, ::wpi::WPI_LOG_ERROR, format, __VA_ARGS__)
|
||||
|
||||
Reference in New Issue
Block a user