#include <exception>
#include <string>
#include <sstream>
#include <iostream>
#include <stdexcept>
Go to the source code of this file.
#define casadi_assert |
( |
|
x | ) |
casadi_assert_message(x,"(Hint for developers: CasadiOptions.setCatchErrorsPython(False) to obtain gdb stacktrace in python.)" << std::endl << "Please notify the CasADi developers.") |
#define casadi_assert_message |
( |
|
x, |
|
|
|
msg |
|
) |
| |
Value:{ \
bool is_ok; \
try{ \
is_ok = x; \
} catch(std::exception& ex){ \
} \
if(!is_ok) { \
std::stringstream ss_internal_; \
}\
} \
#define CASADI_ASSERT_WHERE
#define CASADI_ASSERT_STR(x)
Definition at line 116 of file casadi_exception.hpp.
#define CASADI_ASSERT_STR1 |
( |
|
x | ) |
#x |
#define casadi_assert_warning |
( |
|
x, |
|
|
|
msg |
|
) |
| |
Value:if((x)==false){ \
}
#define CASADI_ASSERT_WHERE
#define CASADI_ASSERT_STR(x)
Definition at line 135 of file casadi_exception.hpp.
#define CASADI_ASSERT_WHERE " on line " CASADI_ASSERT_STR(__LINE__) " of file " CASADI_ASSERT_STR(__FILE__) |
#define casadi_error |
( |
|
msg | ) |
|
Value:{\
std::stringstream ss_internal_; \
}
#define CASADI_ASSERT_WHERE
Definition at line 108 of file casadi_exception.hpp.
#define casadi_log |
( |
|
msg | ) |
|
Value:if(verbose()){ \
std::cout << "CasADi log message: " << msg << std::endl; \
}
Definition at line 103 of file casadi_exception.hpp.
#define casadi_warning |
( |
|
msg | ) |
std::cerr << "CasADi warning: \"" << msg << "\" issued " CASADI_ASSERT_WHERE ". " << std::endl; |