aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Luamm.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-29 16:07:18 (GMT)
committerPaul Tagliamonte <paultag@fluxbox.org>2012-04-07 02:11:33 (GMT)
commit456fde77fc5a7f8dc750834b4b0c15cdfff97d4b (patch)
treed6dc0cd27ea0f9e456033d971bbca761931c717d /src/FbTk/Luamm.hh
parent1b16d5aef9033283075c2c1f56854ba7eb16405d (diff)
downloadfluxbox_paul-456fde77fc5a7f8dc750834b4b0c15cdfff97d4b.zip
fluxbox_paul-456fde77fc5a7f8dc750834b4b0c15cdfff97d4b.tar.bz2
Add checkstring() to lua::state
Diffstat (limited to 'src/FbTk/Luamm.hh')
-rw-r--r--src/FbTk/Luamm.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/Luamm.hh b/src/FbTk/Luamm.hh
index b75fb12..01fb8b1 100644
--- a/src/FbTk/Luamm.hh
+++ b/src/FbTk/Luamm.hh
@@ -161,6 +161,7 @@ namespace lua {
161 161
162 bool safe_compare(lua_CFunction trampoline, int index1, int index2); 162 bool safe_compare(lua_CFunction trampoline, int index1, int index2);
163 void do_pushclosure(int n); 163 void do_pushclosure(int n);
164 void throw_check_error(int narg, Type expected) throw(lua::check_error) __attribute__((noreturn));
164 165
165 /** 166 /**
166 * The pointed-to value is true if this object still exists. We need this because the 167 * The pointed-to value is true if this object still exists. We need this because the
@@ -273,6 +274,7 @@ namespace lua {
273 // call() is a protected mode call, we don't allow unprotected calls 274 // call() is a protected mode call, we don't allow unprotected calls
274 void call(int nargs, int nresults, int errfunc = 0); 275 void call(int nargs, int nresults, int errfunc = 0);
275 void checkargno(int argno) throw(lua::check_error); 276 void checkargno(int argno) throw(lua::check_error);
277 std::string checkstring(int narg) throw(lua::check_error, std::bad_alloc);
276 void *checkudata(int narg, const char *tname) throw(lua::check_error, std::bad_alloc); 278 void *checkudata(int narg, const char *tname) throw(lua::check_error, std::bad_alloc);
277 template<typename T> 279 template<typename T>
278 T *checkudata(int narg, const char *tname) throw(lua::check_error, std::bad_alloc) { return static_cast<T *>(checkudata(narg, tname)); } 280 T *checkudata(int narg, const char *tname) throw(lua::check_error, std::bad_alloc) { return static_cast<T *>(checkudata(narg, tname)); }