diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-19 14:40:17 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-19 14:40:17 -0200 |
| commit | 4dc0be950ad67e4385400aacd25e10325a2a6e59 (patch) | |
| tree | 9d201a8d3725f7130740bb574f7e19d8ad3c4d96 /lstate.c | |
| parent | 3153a41e330a624fccfb7b9ade576767619b4a6b (diff) | |
| download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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++; |
