diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-29 16:07:18 (GMT) |
---|---|---|
committer | Pavel Labath <pavelo@centrum.sk> | 2011-07-29 16:07:18 (GMT) |
commit | b192f2dd79fa5e0a760fe6d53f429cb390b3877f (patch) | |
tree | ae6336f2fd083b95417e5b3d0075af0e51c68a9d /src/FbTk/Luamm.hh | |
parent | 86301b8a6f5bf355d197dd6bdd3d4dad309153aa (diff) | |
download | fluxbox_pavel-b192f2dd79fa5e0a760fe6d53f429cb390b3877f.zip fluxbox_pavel-b192f2dd79fa5e0a760fe6d53f429cb390b3877f.tar.bz2 |
Add checkstring() to lua::state
Diffstat (limited to 'src/FbTk/Luamm.hh')
-rw-r--r-- | src/FbTk/Luamm.hh | 2 |
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)); } |