summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-19 14:40:17 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-19 14:40:17 -0200
commit4dc0be950ad67e4385400aacd25e10325a2a6e59 (patch)
tree9d201a8d3725f7130740bb574f7e19d8ad3c4d96 /lstate.c
parent3153a41e330a624fccfb7b9ade576767619b4a6b (diff)
downloadlua-4dc0be950ad67e4385400aacd25e10325a2a6e59.tar.gz
lua-4dc0be950ad67e4385400aacd25e10325a2a6e59.tar.bz2
lua-4dc0be950ad67e4385400aacd25e10325a2a6e59.zip
new macro 'isLuacode' (to distinguish regular Lua code from
hooks, where C code can run inside a Lua function).
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 22702a00..81e10851 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.147 2017/11/13 15:36:52 roberto Exp roberto $ 2** $Id: lstate.c,v 2.148 2017/11/23 16:35:54 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -177,7 +177,7 @@ static void stack_init (lua_State *L1, lua_State *L) {
177 /* initialize first ci */ 177 /* initialize first ci */
178 ci = &L1->base_ci; 178 ci = &L1->base_ci;
179 ci->next = ci->previous = NULL; 179 ci->next = ci->previous = NULL;
180 ci->callstatus = 0; 180 ci->callstatus = CIST_C;
181 ci->func = L1->top; 181 ci->func = L1->top;
182 setnilvalue(s2v(L1->top)); /* 'function' entry for this 'ci' */ 182 setnilvalue(s2v(L1->top)); /* 'function' entry for this 'ci' */
183 L1->top++; 183 L1->top++;