# # patch "ChangeLog" # from [ff7c650f7c29da4d4ebdd2b605d69789cac7d26d] # to [dbbc9a3bbb39cf4d421fbab99dd176ff1db6d288] # # patch "lua.cc" # from [6f3d7d665113e58d1dc11f8b6e4528cc978c9379] # to [05bd5b6c67ac30fa0ae5db7f9341699a2fa0812f] # ======================================================================== --- ChangeLog ff7c650f7c29da4d4ebdd2b605d69789cac7d26d +++ ChangeLog dbbc9a3bbb39cf4d421fbab99dd176ff1db6d288 @@ -1,3 +1,8 @@ +2005-08-17 Nathaniel Smith + + * lua.cc (lua_hooks): Re-enable panic thrower, we no longer + support Lua 4. + 2005-08-16 Nathaniel Smith * netsync.cc: Add more netsync todos. ======================================================================== --- lua.cc 6f3d7d665113e58d1dc11f8b6e4528cc978c9379 +++ lua.cc 05bd5b6c67ac30fa0ae5db7f9341699a2fa0812f @@ -39,12 +39,10 @@ using namespace std; using boost::lexical_cast; -/* static int panic_thrower(lua_State * st) { throw oops("lua panic"); } -*/ // This Lua object represents a single imperative transaction with the lua // interpreter. if it fails at any point, all further commands in the @@ -565,8 +563,7 @@ st = lua_open (); I(st); - // no atpanic support in 4.x - // lua_atpanic (st, &panic_thrower); + lua_atpanic (st, &panic_thrower); luaopen_base(st); luaopen_io(st);