diff options
Diffstat (limited to '')
| -rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -203,7 +203,7 @@ TStatus luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { | |||
| 203 | #define ERRORSTACKSIZE (MAXSTACK + STACKERRSPACE) | 203 | #define ERRORSTACKSIZE (MAXSTACK + STACKERRSPACE) |
| 204 | 204 | ||
| 205 | 205 | ||
| 206 | /* raise an error while running the message handler */ | 206 | /* raise a stack error while running the message handler */ |
| 207 | l_noret luaD_errerr (lua_State *L) { | 207 | l_noret luaD_errerr (lua_State *L) { |
| 208 | TString *msg = luaS_newliteral(L, "error in error handling"); | 208 | TString *msg = luaS_newliteral(L, "error in error handling"); |
| 209 | setsvalue2s(L, L->top.p, msg); | 209 | setsvalue2s(L, L->top.p, msg); |
| @@ -339,7 +339,7 @@ int luaD_growstack (lua_State *L, int n, int raiseerror) { | |||
| 339 | a stack error; cannot grow further than that. */ | 339 | a stack error; cannot grow further than that. */ |
| 340 | lua_assert(stacksize(L) == ERRORSTACKSIZE); | 340 | lua_assert(stacksize(L) == ERRORSTACKSIZE); |
| 341 | if (raiseerror) | 341 | if (raiseerror) |
| 342 | luaD_errerr(L); /* error inside message handler */ | 342 | luaD_errerr(L); /* stack error inside message handler */ |
| 343 | return 0; /* if not 'raiseerror', just signal it */ | 343 | return 0; /* if not 'raiseerror', just signal it */ |
| 344 | } | 344 | } |
| 345 | else if (n < MAXSTACK) { /* avoids arithmetic overflows */ | 345 | else if (n < MAXSTACK) { /* avoids arithmetic overflows */ |
