From a4312c1e04f33fd8b5f2b2649ae6aff6d31e763d Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 5 Aug 2013 09:35:31 +0200 Subject: Improving the output of GeneralExceptions in Lua; also you can't call lua_error on a yielded co-routine. --- includes/BLua.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') 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 out, int idx, int depth = 0) throw (GeneralException); bool resumeC(); bool yieldC() throw (GeneralException); + void processException(GeneralException & e); lua_State * L; -- cgit v1.2.3