diff options
Diffstat (limited to '')
-rw-r--r-- | lstate.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -395,6 +395,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
395 | g->allgc = obj2gco(L); /* by now, only object is the main thread */ | 395 | g->allgc = obj2gco(L); /* by now, only object is the main thread */ |
396 | L->next = NULL; | 396 | L->next = NULL; |
397 | g->Cstacklimit = L->nCcalls = LUAI_MAXCSTACK + CSTACKERR; | 397 | g->Cstacklimit = L->nCcalls = LUAI_MAXCSTACK + CSTACKERR; |
398 | incnny(L); /* main thread is always non yieldable */ | ||
398 | g->frealloc = f; | 399 | g->frealloc = f; |
399 | g->ud = ud; | 400 | g->ud = ud; |
400 | g->warnf = NULL; | 401 | g->warnf = NULL; |