From 85fc9ecd5f5d2af63d48f6ac2bb46217e3fa6a04 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 8 Oct 2014 09:20:26 -0300 Subject: [PATCH] detail ('G(L)' -> 'g') --- ldo.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ldo.c b/ldo.c index 0ed17b25..05c6d551 100644 --- a/ldo.c +++ b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 2.127 2014/08/01 17:33:08 roberto Exp roberto $ +** $Id: ldo.c,v 2.128 2014/10/07 18:29:13 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -111,15 +111,16 @@ l_noret luaD_throw (lua_State *L, int errcode) { LUAI_THROW(L, L->errorJmp); /* jump to it */ } else { /* thread has no error handler */ + global_State *g = G(L); L->status = cast_byte(errcode); /* mark it as dead */ - if (G(L)->mainthread->errorJmp) { /* main thread has a handler? */ - setobjs2s(L, G(L)->mainthread->top++, L->top - 1); /* copy error obj. */ - luaD_throw(G(L)->mainthread, errcode); /* re-throw in main thread */ + if (g->mainthread->errorJmp) { /* main thread has a handler? */ + setobjs2s(L, g->mainthread->top++, L->top - 1); /* copy error obj. */ + luaD_throw(g->mainthread, errcode); /* re-throw in main thread */ } else { /* no handler at all; abort */ - if (G(L)->panic) { /* panic function? */ + if (g->panic) { /* panic function? */ lua_unlock(L); - G(L)->panic(L); /* call it (last chance to jump out) */ + g->panic(L); /* call it (last chance to jump out) */ } abort(); }