[wpilibc] Fully qualify names in error macros (#7601)

This commit is contained in:
Joseph Eng
2024-12-28 14:59:19 -08:00
committed by GitHub
parent 203487a6aa
commit 54e9c76e03

View File

@@ -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)