1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

C++ version of lua::state::pushstring

This commit is contained in:
Pavel Labath 2010-03-02 20:29:37 +01:00
parent 41ddaf9e23
commit 5b65fce42d

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 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); }
void rawsetfield(int index, const char *k) throw(std::bad_alloc);