#include "Define.h"
#include <string>
Go to the source code of this file.
|
| #define | EXCEPTION_ASSERTION_FAILURE 0xC0000420L |
| |
| #define | WPAssert(cond, ...) do { if (!(cond)) [[unlikely]] Trinity::Assert(__FILE__, __LINE__, __FUNCTION__, #cond, GetDebugInfo(), ##__VA_ARGS__); } while(0) |
| |
| #define | WPAssert_NODEBUGINFO(cond, ...) do { if (!(cond)) [[unlikely]] Trinity::Assert(__FILE__, __LINE__, __FUNCTION__, #cond, ::GetDebugInfo(), ##__VA_ARGS__); } while(0) |
| |
| #define | WPFatal(cond, ...) do { if (!(cond)) [[unlikely]] Trinity::Fatal(__FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); } while(0) |
| |
| #define | WPError(cond, msg) do { if (!(cond)) [[unlikely]] Trinity::Error(__FILE__, __LINE__, __FUNCTION__, (msg)); } while(0) |
| |
| #define | WPWarning(cond, msg) do { if (!(cond)) [[unlikely]] Trinity::Warning(__FILE__, __LINE__, __FUNCTION__, (msg)); } while(0) |
| |
| #define | WPAbort() do { Trinity::Abort(__FILE__, __LINE__, __FUNCTION__); } while(0) |
| |
| #define | WPAbort_MSG(msg, ...) do { Trinity::Abort(__FILE__, __LINE__, __FUNCTION__, (msg), ##__VA_ARGS__); } while(0) |
| |
| #define | ASSERT WPAssert |
| |
| #define | ASSERT_NODEBUGINFO WPAssert_NODEBUGINFO |
| |
| #define | ASSERT_NOTNULL(pointer) Trinity::Impl::AssertNotNull(pointer, __FILE__, __LINE__, __FUNCTION__, #pointer) |
| |
| #define | ASSERT_WITH_SIDE_EFFECTS WPAssert |
| |
| #define | ABORT WPAbort |
| |
| #define | ABORT_MSG WPAbort_MSG |
| |
|
| TC_COMMON_API std::string | GetDebugInfo () |
| |
| void | Trinity::Assert (char const *file, int line, char const *function, char const *message, std::string debugInfo) noexcept |
| |
| void | Trinity::Assert (char const *file, int line, char const *function, char const *message, std::string debugInfo, char const *format,...) noexcept |
| |
| void | Trinity::Fatal (char const *file, int line, char const *function, char const *message,...) noexcept |
| |
| void | Trinity::Error (char const *file, int line, char const *function, char const *message) noexcept |
| |
| void | Trinity::Abort (char const *file, int line, char const *function) noexcept |
| |
| void | Trinity::Abort (char const *file, int line, char const *function, char const *message,...) noexcept |
| |
| void | Trinity::Warning (char const *file, int line, char const *function, char const *message) noexcept |
| |
| void | Trinity::AbortHandler (int sigval) noexcept |
| |
| template<typename T > |
| T * | Trinity::Impl::AssertNotNull (T *pointer, char const *file, int line, char const *function, char const *message) noexcept |
| |
◆ ABORT
◆ ABORT_MSG
◆ ASSERT
◆ ASSERT_NODEBUGINFO
◆ ASSERT_NOTNULL
◆ ASSERT_WITH_SIDE_EFFECTS
| #define ASSERT_WITH_SIDE_EFFECTS WPAssert |
◆ EXCEPTION_ASSERTION_FAILURE
| #define EXCEPTION_ASSERTION_FAILURE 0xC0000420L |
◆ WPAbort
| #define WPAbort |
( |
| ) |
do { Trinity::Abort(__FILE__, __LINE__, __FUNCTION__); } while(0) |
◆ WPAbort_MSG
| #define WPAbort_MSG |
( |
|
msg, |
|
|
|
... |
|
) |
| do { Trinity::Abort(__FILE__, __LINE__, __FUNCTION__, (msg), ##__VA_ARGS__); } while(0) |
◆ WPAssert
| #define WPAssert |
( |
|
cond, |
|
|
|
... |
|
) |
| do { if (!(cond)) [[unlikely]] Trinity::Assert(__FILE__, __LINE__, __FUNCTION__, #cond, GetDebugInfo(), ##__VA_ARGS__); } while(0) |
◆ WPAssert_NODEBUGINFO
| #define WPAssert_NODEBUGINFO |
( |
|
cond, |
|
|
|
... |
|
) |
| do { if (!(cond)) [[unlikely]] Trinity::Assert(__FILE__, __LINE__, __FUNCTION__, #cond, ::GetDebugInfo(), ##__VA_ARGS__); } while(0) |
◆ WPError
| #define WPError |
( |
|
cond, |
|
|
|
msg |
|
) |
| do { if (!(cond)) [[unlikely]] Trinity::Error(__FILE__, __LINE__, __FUNCTION__, (msg)); } while(0) |
◆ WPFatal
| #define WPFatal |
( |
|
cond, |
|
|
|
... |
|
) |
| do { if (!(cond)) [[unlikely]] Trinity::Fatal(__FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); } while(0) |
◆ WPWarning
| #define WPWarning |
( |
|
cond, |
|
|
|
msg |
|
) |
| do { if (!(cond)) [[unlikely]] Trinity::Warning(__FILE__, __LINE__, __FUNCTION__, (msg)); } while(0) |
◆ GetDebugInfo()