aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lstate.c b/lstate.c
index 4434211a..b1f487ff 100644
--- a/lstate.c
+++ b/lstate.c
@@ -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;