#include <agx/debug.h>
#include <agx/PushDisableWarnings.h>
#include <external/json/json.h>
#include <agx/PopDisableWarnings.h>
Go to the source code of this file.
|
| | agx |
| | Namespace agx contains the dynamics/math part of the AGX Dynamics API.
|
| |
| #define agxJsonVerify |
( |
|
x, |
|
|
|
element |
|
) |
| |
Value:if (!(x)) \
{ \
std::stringstream __stream; \
__stream <<
agx::buildErrorString(
"[%s:%u] agxVerify failed: `%s'",
"", __FILE__, __LINE__, #x) << std::endl; \
__stream << "==============================================================================" << std::endl; \
__stream << agxJson::StyledWriter().write(element); \
__stream << "==============================================================================" << std::endl; \
const std::string& __string = __stream.str(); \
std::cerr << __string << std::endl;
\
agxThrow std::runtime_error(__string); \
}
AGXCORE_EXPORT std::string buildErrorString(const char *baseFormat, std::string msgFormat,...)
Definition at line 31 of file Json.h.
| #define agxJsonVerify1 |
( |
|
x, |
|
|
|
element, |
|
|
|
msg |
|
) |
| |
Value:if (!(x)) \
{ \
std::stringstream __stream; \
__stream <<
agx::buildErrorString(
"[%s:%u] agxVerify failed: `%s', ",
"%s", __FILE__, __LINE__, #x, msg) << std::endl; \
__stream << "==============================================================================" << std::endl; \
__stream << agxJson::StyledWriter().write(element); \
__stream << "==============================================================================" << std::endl; \
const std::string& __string = __stream.str(); \
std::cerr << __string << std::endl;
\
agxThrow std::runtime_error(__string); \
}
AGXCORE_EXPORT std::string buildErrorString(const char *baseFormat, std::string msgFormat,...)
Definition at line 44 of file Json.h.
| #define agxJsonVerifyN |
( |
|
x, |
|
|
|
element, |
|
|
|
format, |
|
|
|
... |
|
) |
| |
Value:if (!(x)) \
{ \
std::stringstream __stream; \
__stream <<
agx::buildErrorString(
"[%s:%u] agxVerify failed: `%s', ", format, __FILE__, __LINE__, #x, ##__VA_ARGS__) << std::endl; \
__stream << "==============================================================================" << std::endl; \
__stream << agxJson::StyledWriter().write(element); \
__stream << "==============================================================================" << std::endl; \
const std::string& __string = __stream.str(); \
std::cerr << __string << std::endl;
\
agxThrow std::runtime_error(__string); \
}
AGXCORE_EXPORT std::string buildErrorString(const char *baseFormat, std::string msgFormat,...)
Definition at line 57 of file Json.h.