18 #include <llvm/StringRef.h> 19 #include <llvm/Twine.h> 20 #include <support/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__, \ 39 bool wpi_assert_impl(
bool conditionValue,
const llvm::Twine& conditionText,
42 bool wpi_assertEqual_impl(
int valueA,
int valueB,
47 bool wpi_assertNotEqual_impl(
int valueA,
int valueB,
54 void wpi_suspendOnAssertEnabled(
bool enabled);
58 WPI_DEPRECATED(
"Use RobotController static class method")
60 WPI_DEPRECATED("Use RobotController static class method")
61 int64_t GetFPGARevision();
62 WPI_DEPRECATED("Use RobotController static class method")
63 uint64_t GetFPGATime();
64 WPI_DEPRECATED("Use RobotController static class method")
66 std::
string GetStackTrace(
int offset);
Definition: RobotController.cpp:14
Definition: json.cpp:1170
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:79
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42