diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-06-11 10:52:21 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:10:13 (GMT) |
commit | cbe7fd603696cd8c9d16c434b140953e341e71df (patch) | |
tree | 462228d5089ad23b9c6cd3e346635affd5550855 /src | |
parent | f1376883a6cb68bb692b6031c9560e0409649573 (diff) | |
download | fluxbox_paul-cbe7fd603696cd8c9d16c434b140953e341e71df.zip fluxbox_paul-cbe7fd603696cd8c9d16c434b140953e341e71df.tar.bz2 |
Luamm: add lua_createtable binding
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Luamm.hh | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
218 | // checkstack correctly throws bad_alloc, because lua_checkstack kindly informs us of | 218 | // checkstack correctly throws bad_alloc, because lua_checkstack kindly informs us of |
219 | // that sitution | 219 | // that sitution |
220 | void checkstack(int extra) throw(std::bad_alloc); | 220 | void checkstack(int extra) throw(std::bad_alloc); |
221 | void createtable(int narr = 0, int nrec = 0) { lua_createtable(cobj, narr, nrec); } | ||
221 | const char* gsub(const char *s, const char *p, const char *r) { return luaL_gsub(cobj, s, p, r); } | 222 | const char* gsub(const char *s, const char *p, const char *r) { return luaL_gsub(cobj, s, p, r); } |
222 | bool newmetatable(const char *tname) { return luaL_newmetatable(cobj, tname); } | 223 | bool newmetatable(const char *tname) { return luaL_newmetatable(cobj, tname); } |
223 | void newtable() { lua_newtable(cobj); } | 224 | void newtable() { lua_newtable(cobj); } |