summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-09-14 11:30:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-09-14 11:30:39 -0300
commit0e45ffb8e41fa8f6b156bdaff0685e1ddfdfbd2a (patch)
tree8f59cfee30e72001ccd20d8c4c901cdfe14c9f95 /lua.h
parent071e54ae0b2fb79bc38c2ca95354886b827c7ccb (diff)
downloadlua-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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index 5887d16c..8e373b20 100644
--- a/lua.h
+++ b/lua.h
@@ -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*/
246LUA_API int (lua_yield) (lua_State *L, int nresults); 246LUA_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)
247LUA_API int (lua_resume) (lua_State *L, int narg); 249LUA_API int (lua_resume) (lua_State *L, int narg);
248LUA_API int (lua_status) (lua_State *L); 250LUA_API int (lua_status) (lua_State *L);
249 251