mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 20:44:56 +00:00
Add one more pushstring overload to lua::state
This commit is contained in:
parent
da5d739fd9
commit
3a9823b7f3
@ -233,6 +233,7 @@ namespace lua {
|
||||
void pushclosure(const cpp_function &fn, int n);
|
||||
void pushfunction(const cpp_function &fn) { pushclosure(fn, 0); }
|
||||
void pushstring(const char *s) { lua_pushstring(cobj.get(), s); }
|
||||
void pushstring(const char *s, size_t len) { lua_pushlstring(cobj.get(), s, len); }
|
||||
void pushstring(const std::string &s) { lua_pushlstring(cobj.get(), s.c_str(), s.size()); }
|
||||
void rawgetfield(int index, const char *k) throw(std::bad_alloc);
|
||||
void rawset(int index) { lua_rawset(cobj.get(), index); }
|
||||
|
Loading…
Reference in New Issue
Block a user