diff options
-rw-r--r-- | src/BLua.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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<Handle> h, bool docall) throw (GeneralException) { IO<Input> 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) { |