aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-02 21:53:24 (GMT)
committerPavel Labath <pavelo@centrum.sk>2013-02-17 00:09:35 (GMT)
commit6fb35815b8d0db49487dbc930f1223927853d09a (patch)
tree79fc5da93a08a7f69c71af450f63cf129d4593e7
parentb9de0c5be3022db926e167fbe765dc222c1db828 (diff)
downloadfluxbox_pavel-6fb35815b8d0db49487dbc930f1223927853d09a.zip
fluxbox_pavel-6fb35815b8d0db49487dbc930f1223927853d09a.tar.bz2
Add a version of lua::state::loadstring which accepts std::string
-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>