summaryrefslogtreecommitdiff
path: root/includes/BLua.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-05 09:35:31 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-05 09:35:31 +0200
commita4312c1e04f33fd8b5f2b2649ae6aff6d31e763d (patch)
treee7fbd8e2f4a049eb34ad000a5a65ed80e1a8d710 /includes/BLua.h
parent90ef024f35c6278b246b8f659bfb1fc1dc97bfde (diff)
Improving the output of GeneralExceptions in Lua; also you can't call lua_error on a yielded co-routine.
Diffstat (limited to 'includes/BLua.h')
-rw-r--r--includes/BLua.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/BLua.h b/includes/BLua.h
index 40e89bd..a464a77 100644
--- a/includes/BLua.h
+++ b/includes/BLua.h
@@ -133,7 +133,7 @@ class Lua {
int gettop() { return lua_gettop(L); }
void getglobal(const char * name) throw (GeneralException);
void pushLuaContext();
- void error(const char * msg);
+ void error(const char * msg) throw (GeneralException);
void error(const String & msg) { error(msg.to_charp()); }
int type(int i = -1) { return lua_type(L, i); }
@@ -197,6 +197,7 @@ class Lua {
void dumpvars_r(IO<Handle> out, int idx, int depth = 0) throw (GeneralException);
bool resumeC();
bool yieldC() throw (GeneralException);
+ void processException(GeneralException & e);
lua_State * L;