diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-06 17:08:00 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-06 17:08:00 -0200 |
| commit | 118347d8c3b83ea0291918e81c5367937316fabb (patch) | |
| tree | b77d5b6e03d9ae20841bd80a50cc56237bdf16f5 /lua.h | |
| parent | 6820da509686ce06fdb3de58856056476f55f534 (diff) | |
| download | lua-118347d8c3b83ea0291918e81c5367937316fabb.tar.gz lua-118347d8c3b83ea0291918e81c5367937316fabb.tar.bz2 lua-118347d8c3b83ea0291918e81c5367937316fabb.zip | |
new API for coroutines
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.160 2002/10/25 20:05:28 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.161 2002/10/25 21:31:28 roberto Exp roberto $ |
| 3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
| 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil | 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil |
| 5 | ** http://www.lua.org mailto:info@lua.org | 5 | ** http://www.lua.org mailto:info@lua.org |
| @@ -123,6 +123,8 @@ LUA_API void lua_insert (lua_State *L, int idx); | |||
| 123 | LUA_API void lua_replace (lua_State *L, int idx); | 123 | LUA_API void lua_replace (lua_State *L, int idx); |
| 124 | LUA_API int lua_checkstack (lua_State *L, int sz); | 124 | LUA_API int lua_checkstack (lua_State *L, int sz); |
| 125 | 125 | ||
| 126 | LUA_API void lua_movethread (lua_State *from, lua_State *to, int n); | ||
| 127 | |||
| 126 | 128 | ||
| 127 | /* | 129 | /* |
| 128 | ** access functions (stack -> C) | 130 | ** access functions (stack -> C) |
| @@ -201,9 +203,8 @@ LUA_API int lua_dump (lua_State *L, lua_Chunkwriter writer, void *data); | |||
| 201 | /* | 203 | /* |
| 202 | ** coroutine functions | 204 | ** coroutine functions |
| 203 | */ | 205 | */ |
| 204 | LUA_API void lua_cobegin (lua_State *L, int nargs); | ||
| 205 | LUA_API int lua_yield (lua_State *L, int nresults); | 206 | LUA_API int lua_yield (lua_State *L, int nresults); |
| 206 | LUA_API int lua_resume (lua_State *L, lua_State *co); | 207 | LUA_API int lua_resume (lua_State *L, int narg); |
| 207 | 208 | ||
| 208 | /* | 209 | /* |
| 209 | ** Garbage-collection functions | 210 | ** Garbage-collection functions |
