mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Add a luaL_gsub wrapper to lua::state
This commit is contained in:
parent
22de36271d
commit
d9d8506e0b
@ -240,6 +240,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);
|
||||
const char* gsub(const char *s, const char *p, const char *r) { return luaL_gsub(cobj.get(), s, p, r); }
|
||||
bool newmetatable(const char *tname) { return luaL_newmetatable(cobj.get(), tname); }
|
||||
void newtable() { lua_newtable(cobj.get()); }
|
||||
void *newuserdata(size_t size) { return lua_newuserdata(cobj.get(), size); }
|
||||
|
Loading…
Reference in New Issue
Block a user