first steps towards yielding through longjump

This commit is contained in:
Roberto Ierusalimschy
2008-08-13 14:02:42 -03:00
parent c1565c16ed
commit fdbb243ff9
3 changed files with 50 additions and 62 deletions

8
ldo.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: ldo.h,v 2.8 2006/07/11 15:53:29 roberto Exp roberto $
** $Id: ldo.h,v 2.9 2008/07/03 14:24:36 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@@ -28,12 +28,6 @@
#define restoreci(L,n) ((CallInfo *)((char *)L->base_ci + (n)))
/* results from luaD_precall */
#define PCRLUA 0 /* initiated a call to a Lua function */
#define PCRC 1 /* did a call to a C function */
#define PCRYIELD 2 /* C funtion yielded */
/* type of protected functions, to be ran by `runprotected' */
typedef void (*Pfunc) (lua_State *L, void *ud);