diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-09-14 11:30:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-09-14 11:30:39 -0300 |
commit | 0e45ffb8e41fa8f6b156bdaff0685e1ddfdfbd2a (patch) | |
tree | 8f59cfee30e72001ccd20d8c4c901cdfe14c9f95 /lua.h | |
parent | 071e54ae0b2fb79bc38c2ca95354886b827c7ccb (diff) | |
download | lua-0e45ffb8e41fa8f6b156bdaff0685e1ddfdfbd2a.tar.gz lua-0e45ffb8e41fa8f6b156bdaff0685e1ddfdfbd2a.tar.bz2 lua-0e45ffb8e41fa8f6b156bdaff0685e1ddfdfbd2a.zip |
first implementation of 'lua_yieldk' (yield with continuation)
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.240 2009/06/18 18:59:18 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.241 2009/07/15 17:26:14 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -243,7 +243,9 @@ LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data); | |||
243 | /* | 243 | /* |
244 | ** coroutine functions | 244 | ** coroutine functions |
245 | */ | 245 | */ |
246 | LUA_API int (lua_yield) (lua_State *L, int nresults); | 246 | LUA_API int (lua_yieldk) (lua_State *L, int nresults, int ctx, |
247 | lua_CFunction k); | ||
248 | #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) | ||
247 | LUA_API int (lua_resume) (lua_State *L, int narg); | 249 | LUA_API int (lua_resume) (lua_State *L, int narg); |
248 | LUA_API int (lua_status) (lua_State *L); | 250 | LUA_API int (lua_status) (lua_State *L); |
249 | 251 | ||