mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 13:00:45 +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
|
// checkstack correctly throws bad_alloc, because lua_checkstack kindly informs us of
|
||||||
// that sitution
|
// that sitution
|
||||||
void checkstack(int extra) throw(std::bad_alloc);
|
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); }
|
bool newmetatable(const char *tname) { return luaL_newmetatable(cobj.get(), tname); }
|
||||||
void newtable() { lua_newtable(cobj.get()); }
|
void newtable() { lua_newtable(cobj.get()); }
|
||||||
void *newuserdata(size_t size) { return lua_newuserdata(cobj.get(), size); }
|
void *newuserdata(size_t size) { return lua_newuserdata(cobj.get(), size); }
|
||||||
|
Loading…
Reference in New Issue
Block a user