diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-02 21:53:24 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:11:29 (GMT) |
commit | a40b92b8e3e13e131fc3f31bb6d126e033236b3e (patch) | |
tree | 6962e327e525a8a89d756c9f27e514b445bad105 /src | |
parent | 34649e86c5cbe9c9f231c049a0844afdda5a7db9 (diff) | |
download | fluxbox_paul-a40b92b8e3e13e131fc3f31bb6d126e033236b3e.zip fluxbox_paul-a40b92b8e3e13e131fc3f31bb6d126e033236b3e.tar.bz2 |
Add a version of lua::state::loadstring which accepts std::string
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Luamm.hh | 1 |
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> |