From 4fe53fb821119cba4606434b12a59928bcc2d4a9 Mon Sep 17 00:00:00 2001 From: francesco-ST Date: Thu, 2 Sep 2010 15:02:30 +0200 Subject: introduced generic C++ object check function --- agg-plot/lua-plot-cpp.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'agg-plot/lua-plot-cpp.h') diff --git a/agg-plot/lua-plot-cpp.h b/agg-plot/lua-plot-cpp.h index 022be7e9..a3420708 100644 --- a/agg-plot/lua-plot-cpp.h +++ b/agg-plot/lua-plot-cpp.h @@ -14,16 +14,13 @@ extern "C" { class lua_plot { public: typedef plot plot_type; - -private: - plot_type m_plot; - -public: + lua_plot() : m_plot() { }; plot_type& self() { return m_plot; }; - static lua_plot *check(lua_State *L, int index); +private: + plot_type m_plot; }; #endif -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /