Files
externals/linux/include/celoxica/exception.hpp
T
2017-10-04 14:16:02 -04:00

21 lines
665 B
C++

#ifndef __CELOXICA_BASE_EXCEPTION_HPP__
#define __CELOXICA_BASE_EXCEPTION_HPP__
#ifdef __cplusplus
# include <string>
# include <exception>
# include <stdexcept>
# define CLX_DECLARE_EXCEPTION(name_m, base_exception_m, prefix_m) \
struct name_m : public base_exception_m \
{ \
explicit name_m(std::string const & what_arg) : \
base_exception_m(prefix_m + what_arg) \
{} \
};
#endif // ifdef __cplusplus
#endif // ifndef __CELOXICA_BASE_EXCEPTION_HPP__