From c39b1a665114ad2a8231f0ea69f9c730cc434070 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 31 Jul 2013 07:02:04 +0200 Subject: Added a few forgotten references. --- src/BLua.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/BLua.cc') diff --git a/src/BLua.cc b/src/BLua.cc index cb0e645..48a3305 100644 --- a/src/BLua.cc +++ b/src/BLua.cc @@ -210,10 +210,10 @@ int Balau::LuaStatics::callwrap(lua_State * __L, lua_CFunction func) { try { return func(__L); } - catch (LuaException e) { + catch (LuaException & e) { L.error(String("LuaException: ") + e.getMsg()); } - catch (Balau::GeneralException e) { + catch (Balau::GeneralException & e) { L.error(String("GeneralException: ") + e.getMsg()); } // LuaJIT sucks sometime. @@ -486,7 +486,7 @@ const char * Balau::LuaStatics::getF(lua_State * L, void * ud, size_t * size) { try { *size = lf->f->read(lf->buff, BUFFERSIZE); } - catch (GeneralException e) { + catch (GeneralException & e) { lf->exception = new GeneralException(e); AssertHelper("LuaJIT is lame."); } -- cgit v1.2.3