18 #include <wpi/StringRef.h> 19 #include <wpi/Twine.h> 20 #include <wpi/deprecated.h> 22 #define wpi_assert(condition) \ 23 wpi_assert_impl(condition, #condition, "", __FILE__, __LINE__, __FUNCTION__) 24 #define wpi_assertWithMessage(condition, message) \ 25 wpi_assert_impl(condition, #condition, message, __FILE__, __LINE__, \ 28 #define wpi_assertEqual(a, b) \ 29 wpi_assertEqual_impl(a, b, #a, #b, "", __FILE__, __LINE__, __FUNCTION__) 30 #define wpi_assertEqualWithMessage(a, b, message) \ 31 wpi_assertEqual_impl(a, b, #a, #b, message, __FILE__, __LINE__, __FUNCTION__) 33 #define wpi_assertNotEqual(a, b) \ 34 wpi_assertNotEqual_impl(a, b, #a, #b, "", __FILE__, __LINE__, __FUNCTION__) 35 #define wpi_assertNotEqualWithMessage(a, b, message) \ 36 wpi_assertNotEqual_impl(a, b, #a, #b, message, __FILE__, __LINE__, \ 45 bool wpi_assert_impl(
bool conditionValue,
const wpi::Twine& conditionText,
56 bool wpi_assertEqual_impl(
int valueA,
int valueB,
69 bool wpi_assertNotEqual_impl(
int valueA,
int valueB,
85 WPI_DEPRECATED(
"Use RobotController static class method")
98 WPI_DEPRECATED("Use RobotController static class method")
99 int64_t GetFPGARevision();
108 WPI_DEPRECATED("Use RobotController static class method")
109 uint64_t GetFPGATime();
117 WPI_DEPRECATED("Use RobotController static class method")
118 bool GetUserButton();
125 std::
string GetStackTrace(
int offset);
Definition: Utility.cpp:119
Definition: SmallVector.h:946
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79