From 4dc0be950ad67e4385400aacd25e10325a2a6e59 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 19 Dec 2017 14:40:17 -0200 Subject: new macro 'isLuacode' (to distinguish regular Lua code from hooks, where C code can run inside a Lua function). --- lstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 22702a00..81e10851 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.147 2017/11/13 15:36:52 roberto Exp roberto $ +** $Id: lstate.c,v 2.148 2017/11/23 16:35:54 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -177,7 +177,7 @@ static void stack_init (lua_State *L1, lua_State *L) { /* initialize first ci */ ci = &L1->base_ci; ci->next = ci->previous = NULL; - ci->callstatus = 0; + ci->callstatus = CIST_C; ci->func = L1->top; setnilvalue(s2v(L1->top)); /* 'function' entry for this 'ci' */ L1->top++; -- cgit v1.2.3-55-g6feb