#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
Go to the source code of this file.
|
namespace | OscProb |
| Some useful general definitions.
|
|
|
std::vector< std::string > | OscProb::split (const std::string &s, char delimiter) |
| Helper function to split a string by a delimiter. More...
|
|
template<typename... Args> |
std::string | OscProb::format_args (const std::string &names, const Args &... args) |
| The main variadic template function to log the arguments. More...
|
|
◆ FUNCTION_NAME
#define FUNCTION_NAME __func__ |
◆ THROW_ON_INVALID_ARG
#define THROW_ON_INVALID_ARG |
( |
|
condition, |
|
|
|
... |
|
) |
| |
Value: do { \
if (!(condition)) { \
std::stringstream ss; \
ss << "\n Condition '" << #condition << "' failed." \
<< "\n At file: " << __FILE__ << "\n At line: " << __LINE__; \
throw std::invalid_argument(ss.str()); \
} \
} \
while (0)
std::string format_args(const std::string &names, const Args &... args)
The main variadic template function to log the arguments.
Definition at line 87 of file exceptions.h.