1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +00:00

Add one more pushstring overload to lua::state

This commit is contained in:
Pavel Labath 2010-08-21 21:06:34 +02:00
parent da5d739fd9
commit 3a9823b7f3

View File

@ -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); }