gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/canvas-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/canvas-window.cpp')
-rw-r--r--agg-plot/canvas-window.cpp 8
1 files changed, 1 insertions, 7 deletions
diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp
index 1e3cfacb..0a37dbb8 100644
--- a/agg-plot/canvas-window.cpp
+++ b/agg-plot/canvas-window.cpp
@@ -128,16 +128,10 @@ canvas_thread_function (void *_win)
return NULL;
}
-canvas_window *
-canvas_window::check (lua_State *L, int index)
-{
- return (canvas_window *) gs_check_userdata (L, index, GS_CANVAS_WINDOW);
-}
-
int
canvas_window_close (lua_State *L)
{
- canvas_window *win = canvas_window::check (L, 1);
+ canvas_window *win = object_check<canvas_window>(L, 1, GS_CANVAS_WINDOW);
win->lock();
if (win->status == canvas_window::running)
win->close();
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月14日 13:03:24 +0000

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