From 093b30702304e72a2b73c0041a63c7c125af7314 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sat, 11 Jun 2011 12:52:21 +0200 Subject: Luamm: add lua_createtable binding --- src/FbTk/Luamm.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FbTk/Luamm.hh b/src/FbTk/Luamm.hh index 0ebe6ef..f2084e7 100644 --- a/src/FbTk/Luamm.hh +++ b/src/FbTk/Luamm.hh @@ -218,6 +218,7 @@ namespace lua { // checkstack correctly throws bad_alloc, because lua_checkstack kindly informs us of // that sitution void checkstack(int extra) throw(std::bad_alloc); + void createtable(int narr = 0, int nrec = 0) { lua_createtable(cobj, narr, nrec); } const char* gsub(const char *s, const char *p, const char *r) { return luaL_gsub(cobj, s, p, r); } bool newmetatable(const char *tname) { return luaL_newmetatable(cobj, tname); } void newtable() { lua_newtable(cobj); } -- cgit v0.11.2