diff options
Diffstat (limited to 'client/luawidget.h')
-rw-r--r-- | client/luawidget.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/client/luawidget.h b/client/luawidget.h index b110598..e6e0be3 100644 --- a/client/luawidget.h +++ b/client/luawidget.h @@ -33,7 +33,18 @@ #include "widgets/widget.h" -void register_widget(lua_State *L); +#define LUA_SRC "lua" + +void *luaL_isudata (lua_State *L, int ud, const char *tname); + +#define luaL_checkbool(L, i) \ + (lua_isboolean(L,i) ? lua_toboolean(L,i) : luaL_checkint(L,i)) + +typedef struct wdg_userdata { + Widget *widget; +} wdg_userdata; + +void register_widgets(lua_State *L); int wdg_make_widget(lua_State *L, Widget *widget); #endif/*__PRACRO_LUAWIDGET_H__*/ |