mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
using 'trap' to stop 'luaV_execute' when necessary (tracing and
to update its copy of 'base' when the stack is reallocated)
This commit is contained in:
parent
7d4828cc9f
commit
5440b42f43
5 changed files with 67 additions and 24 deletions
3
lstate.h
3
lstate.h
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lstate.h,v 2.146 2017/11/02 11:28:56 roberto Exp $
|
||||
** $Id: lstate.h,v 2.150 2017/11/07 13:25:26 roberto Exp roberto $
|
||||
** Global State
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -91,6 +91,7 @@ typedef struct CallInfo {
|
|||
union {
|
||||
struct { /* only for Lua functions */
|
||||
const Instruction *savedpc;
|
||||
l_signalT trap;
|
||||
} l;
|
||||
struct { /* only for C functions */
|
||||
lua_KFunction k; /* continuation in case of yields */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue