20 #ifndef __nec_exception__
21 #define __nec_exception__
42 m_message << message << code;
45 template <
class T>
void append(
const T& message)
50 std::string get_message()
52 std::string ret = m_message.str();
56 static std::string string_printf(
const char* fmt, ...);
59 std::stringstream m_message;
67 inline void nec_stop(
const char* __fmt, ...)
74 #define nec_stop(__fmt, ...)\
75 { nec_exception* __nex = new nec_exception();\
76 std::string _mess = nec_exception::string_printf(__fmt, __VA_ARGS__); \
77 __nex->append(_mess.c_str()); \
Definition: nec_exception.h:28