introduced generic C++ object check function - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot-cpp.h
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年09月02日 15:02:30 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年09月02日 15:02:30 +0200
commit4fe53fb821119cba4606434b12a59928bcc2d4a9 (patch)
treebf202cc383ba67b93c9f2c81f77aaacf21eeff62 /agg-plot/lua-plot-cpp.h
parent237996111f07eb7e52d596be9a2b2145f64b707f (diff)
downloadgsl-shell-4fe53fb821119cba4606434b12a59928bcc2d4a9.tar.gz
introduced generic C++ object check function
Diffstat (limited to 'agg-plot/lua-plot-cpp.h')
-rw-r--r--agg-plot/lua-plot-cpp.h 9
1 files changed, 3 insertions, 6 deletions
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<drawable, lua_management> 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
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月14日 19:22:16 +0000

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