aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-02 21:53:24 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-11-01 09:57:20 (GMT)
commit8aa10e5def9d413b23642556e376d1f73d1e3892 (patch)
treedfe32002b063762fa07ae158b57dc82f3cbb2af7
parentf2709b26d8af7292f750fc05525ac90ad0d99c41 (diff)
downloadfluxbox_paul-8aa10e5def9d413b23642556e376d1f73d1e3892.zip
fluxbox_paul-8aa10e5def9d413b23642556e376d1f73d1e3892.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>