Introduce window_mutex to simplify lock/unlock of FOX app - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-cpp-utils.h
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年10月16日 13:16:27 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年10月16日 13:16:27 +0200
commitcc9e4f31b3dc21196c5ca27ad6703dcfcadda648 (patch)
tree35784ccfb1f272145c9c3a22225cfb3e7ef1a6d2 /agg-plot/lua-cpp-utils.h
parentfa7f82698332f2f90422b0ff6a0b40ae7072332e (diff)
downloadgsl-shell-cc9e4f31b3dc21196c5ca27ad6703dcfcadda648.tar.gz
Introduce window_mutex to simplify lock/unlock of FOX app
Diffstat (limited to 'agg-plot/lua-cpp-utils.h')
-rw-r--r--agg-plot/lua-cpp-utils.h 6
1 files changed, 6 insertions, 0 deletions
diff --git a/agg-plot/lua-cpp-utils.h b/agg-plot/lua-cpp-utils.h
index 8f18d5a9..1f0a56b0 100644
--- a/agg-plot/lua-cpp-utils.h
+++ b/agg-plot/lua-cpp-utils.h
@@ -73,4 +73,10 @@ T* object_check (lua_State *L, int index, enum gs_type_e tp)
return (T *) gs_check_userdata (L, index, tp);
}
+template <class T>
+T* object_cast (lua_State *L, int index, enum gs_type_e tp)
+{
+ return (T *) gs_is_userdata (L, index, tp);
+}
+
#endif
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月12日 14:23:56 +0000

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