diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-07-31 07:02:04 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-07-31 07:02:04 +0200 |
commit | c39b1a665114ad2a8231f0ea69f9c730cc434070 (patch) | |
tree | a03159f663962070345ba892ff8a67e8da9a6d35 /src/BLua.cc | |
parent | fd192780b998f46dac8d192ba68666bb5d8db73d (diff) |
Added a few forgotten references.
Diffstat (limited to 'src/BLua.cc')
-rw-r--r-- | src/BLua.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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."); } |