new type 'lua_Ctx' for continuation-function contexts (to allow type

to be configurable)
This commit is contained in:
Roberto Ierusalimschy
2014-07-17 10:53:37 -03:00
parent 8bb272a3e3
commit 1aa4f69b51
7 changed files with 63 additions and 42 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 2.106 2014/06/10 19:18:50 roberto Exp roberto $
** $Id: lstate.h,v 2.107 2014/06/12 19:07:30 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -71,7 +71,7 @@ typedef struct CallInfo {
struct { /* only for C functions */
lua_KFunction k; /* continuation in case of yields */
ptrdiff_t old_errfunc;
int ctx; /* context info. in case of yields */
lua_Ctx ctx; /* context info. in case of yields */
} c;
} u;
} CallInfo;