From 4d77b2060aa76ec194bc643e6b20138a4cd529e9 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 5 Aug 2013 07:07:41 +0200 Subject: The lua_load operation is a bit complicated, and can't throw EAgain. --- src/BLua.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/BLua.cc') diff --git a/src/BLua.cc b/src/BLua.cc index e729d83..48e77d4 100644 --- a/src/BLua.cc +++ b/src/BLua.cc @@ -572,7 +572,10 @@ void Balau::Lua::load(IO h, bool docall) throw (GeneralException) { IO i = h; if (!i.isNull()) name = String("@") + i->getFName(); - status = lua_load(L, LuaStatics::getF, &lf, name.to_charp()); + { + Task::SimpleContext sc; + status = lua_load(L, LuaStatics::getF, &lf, name.to_charp()); + } if (status) { if (lf.exception) { -- cgit v1.2.3