diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-10 14:14:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-10 14:14:37 -0300 |
commit | ba484b9eb16dd62a7c3a5400a66eb952b654d3f0 (patch) | |
tree | 31692ddf85265e5a46eab0cd55a0b0757a225e68 /lapi.h | |
parent | f9d015523ef48266cea37e13717c223c16941b23 (diff) | |
download | lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.tar.gz lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.tar.bz2 lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.zip |
yielding across lua_call (first version)
Diffstat (limited to 'lapi.h')
-rw-r--r-- | lapi.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.h,v 2.2 2005/04/25 19:24:10 roberto Exp roberto $ | 2 | ** $Id: lapi.h,v 2.3 2006/07/11 15:53:29 roberto Exp roberto $ |
3 | ** Auxiliary functions from Lua API | 3 | ** Auxiliary functions from Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -13,4 +13,8 @@ | |||
13 | 13 | ||
14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top);} | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top);} |
15 | 15 | ||
16 | #define adjustresults(L,nres) \ | ||
17 | { if ((nres) == LUA_MULTRET && L->top >= L->ci->top) L->ci->top = L->top; } | ||
18 | |||
19 | |||
16 | #endif | 20 | #endif |