-rw-r--r-- | agg-plot/agg-parse-trans.h | 30 |
diff --git a/agg-plot/agg-parse-trans.h b/agg-plot/agg-parse-trans.h index 2e8c8bfb..58a172f5 100644 --- a/agg-plot/agg-parse-trans.h +++ b/agg-plot/agg-parse-trans.h @@ -5,35 +5,11 @@ extern "C" { #include "lua.h" } -#include <exception> - +#include "lua-cpp-utils.h" #include "sg_object.h" #include "agg_color_rgba.h" -class agg_spec_error : public std::exception { -public: - enum err_e { - invalid_tag = 0, - invalid_spec, - missing_parameter, - invalid_object, - generic_error - }; - - agg_spec_error(enum err_e err) : m_code(err) {}; - agg_spec_error() : m_code(generic_error) {}; - - virtual const char* what() const throw() - { - return m_msg[(int) m_code]; - } - -private: - err_e m_code; - - static const char *m_msg[]; -}; - -extern sg_object* parse_graph_args (lua_State *L, agg::rgba8& color); +extern sg_object* parse_graph_args (lua_State *L, agg::rgba8& color, + gslshell::ret_status& st); #endif |