aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-02 21:53:24 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-07-02 21:53:24 (GMT)
commite5aeae0c2cbec9c96e273463388d1db64879cb23 (patch)
treec392eff919e7e3d2921c8a66217afca06fd2aea3 /src
parent29edc1b1a2e412c4b2f5b27604897bc89f6f403f (diff)
downloadfluxbox_pavel-e5aeae0c2cbec9c96e273463388d1db64879cb23.zip
fluxbox_pavel-e5aeae0c2cbec9c96e273463388d1db64879cb23.tar.bz2
Add a version of lua::state::loadstring which accepts std::string
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/Luamm.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/FbTk/Luamm.hh b/src/FbTk/Luamm.hh
index 1ba9cbe..d853120 100644
--- a/src/FbTk/Luamm.hh
+++ b/src/FbTk/Luamm.hh
@@ -271,6 +271,7 @@ namespace lua {
271 void loadfile(const char *filename) throw(lua::syntax_error, lua::file_error, std::bad_alloc); 271 void loadfile(const char *filename) throw(lua::syntax_error, lua::file_error, std::bad_alloc);
272 void loadstring(const char *s, const char *chunkname = NULL) throw(lua::syntax_error, std::bad_alloc) { loadstring(s, strlen(s), chunkname); } 272 void loadstring(const char *s, const char *chunkname = NULL) throw(lua::syntax_error, std::bad_alloc) { loadstring(s, strlen(s), chunkname); }
273 void loadstring(const char *s, size_t len, const char *chunkname = NULL) throw(lua::syntax_error, std::bad_alloc); 273 void loadstring(const char *s, size_t len, const char *chunkname = NULL) throw(lua::syntax_error, std::bad_alloc);
274 void loadstring(const std::string &s, const char *chunkname = NULL) throw(lua::syntax_error, std::bad_alloc) { loadstring(s.c_str(), s.length(), chunkname); }
274 bool next(int index); 275 bool next(int index);
275 // register is a reserved word :/ 276 // register is a reserved word :/
276 template<typename Functor> 277 template<typename Functor>