From 118347d8c3b83ea0291918e81c5367937316fabb Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 6 Nov 2002 17:08:00 -0200 Subject: new API for coroutines --- lua.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index 3fef586d..6bcc2d4d 100644 --- a/lua.h +++ b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.160 2002/10/25 20:05:28 roberto Exp roberto $ +** $Id: lua.h,v 1.161 2002/10/25 21:31:28 roberto Exp roberto $ ** Lua - An Extensible Extension Language ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil ** http://www.lua.org mailto:info@lua.org @@ -123,6 +123,8 @@ LUA_API void lua_insert (lua_State *L, int idx); LUA_API void lua_replace (lua_State *L, int idx); LUA_API int lua_checkstack (lua_State *L, int sz); +LUA_API void lua_movethread (lua_State *from, lua_State *to, int n); + /* ** access functions (stack -> C) @@ -201,9 +203,8 @@ LUA_API int lua_dump (lua_State *L, lua_Chunkwriter writer, void *data); /* ** coroutine functions */ -LUA_API void lua_cobegin (lua_State *L, int nargs); LUA_API int lua_yield (lua_State *L, int nresults); -LUA_API int lua_resume (lua_State *L, lua_State *co); +LUA_API int lua_resume (lua_State *L, int narg); /* ** Garbage-collection functions -- cgit v1.2.3-55-g6feb