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")
108 WPI_DEPRECATED("Use RobotController static class method")
117 WPI_DEPRECATED("Use RobotController static class method")
bool GetUserButton()
Get the state of the "USER" button on the roboRIO.
int GetFPGAVersion()
Return the FPGA Version number.
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
uint64_t GetFPGATime()
Read the microsecond-resolution timer on the FPGA.
Definition: SmallVector.h:946
std::string GetStackTrace(int offset)
Get a stack trace, ignoring the first "offset" symbols.
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
int64_t GetFPGARevision()
Return the FPGA Revision number.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79