#include <vsmc/internal/config.hpp>
#include <cassert>
#include <cstdio>
#include <stdexcept>
#include <string>
Go to the source code of this file.
#define VSMC_RUNTIME_ASSERT |
( |
|
cond, |
|
|
|
msg |
|
) |
| |
Value:{ \
if (!(cond)) { \
std::fprintf(stderr, \
"vSMC runtime assertion failed; File: %s; Line: %d\n%s\n", \
__FILE__, __LINE__, msg); \
std::fflush(stderr); \
}; \
assert(cond); \
}
Definition at line 64 of file assert.hpp.
#define VSMC_RUNTIME_WARNING |
( |
|
cond, |
|
|
|
msg |
|
) |
| |
Value:{ \
if (!(cond)) { \
std::fprintf(stderr, \
"vSMC runtime warning; File: %s; Line: %d\n%s\n", \
__FILE__, __LINE__, msg); \
std::fflush(stderr); \
}; \
}
Definition at line 84 of file assert.hpp.
#define VSMC_STATIC_ASSERT |
( |
|
cond, |
|
|
|
msg |
|
) |
| static_assert(cond, #msg) |