Loading...
Searching...
No Matches
Go to the documentation of this file.
11#ifndef H_CPPUT_EXCEPTION
12#define H_CPPUT_EXCEPTION
17#define CPPUT_THROW_EXCEPTION(exception_type, message) throw exception_type((message))
19#define CPPUT_THROW(...) \
20 CPPUT_THROW_EXCEPTION(std::runtime_error, cpput::concat::simple("In ", __func__, "() // ", __VA_ARGS__))
23#define CPPUT_PERSISTENT_ASSERT(condition, ...) \
26 CPPUT_THROW(__VA_ARGS__); \
30# define CPPUT_ASSERT(condition, ...)
32# define CPPUT_ASSERT(condition, ...) CPPUT_PERSISTENT_ASSERT(condition, __VA_ARGS__)