mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpilibc] Fully qualify names in error macros (#7601)
This commit is contained in:
@@ -147,10 +147,10 @@ namespace warn {
|
||||
*
|
||||
* @param[in] format error message format
|
||||
*/
|
||||
#define FRC_ReportWarning(format, ...) \
|
||||
do { \
|
||||
::frc::ReportError(warn::Warning, __FILE__, __LINE__, __FUNCTION__, \
|
||||
format __VA_OPT__(, ) __VA_ARGS__); \
|
||||
#define FRC_ReportWarning(format, ...) \
|
||||
do { \
|
||||
::frc::ReportError(::frc::warn::Warning, __FILE__, __LINE__, __FUNCTION__, \
|
||||
format __VA_OPT__(, ) __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
/**
|
||||
@@ -186,7 +186,7 @@ namespace warn {
|
||||
#define FRC_AssertMessage(condition, format, ...) \
|
||||
do { \
|
||||
if (!(condition)) { \
|
||||
throw ::frc::MakeError(err::AssertionFailure, __FILE__, __LINE__, \
|
||||
throw ::frc::MakeError(::frc::err::AssertionFailure, __FILE__, __LINE__, \
|
||||
__FUNCTION__, format __VA_OPT__(, ) __VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
Reference in New Issue
Block a user