diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-03 12:58:03 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-03 12:58:03 -0300 |
| commit | fffbaede758abe3b460621962113c352dbd7c605 (patch) | |
| tree | 2f77072c0dbca31206dd24e8d66d2fc599716218 | |
| parent | ae9ad6c69403252adf05410b89d0353ed774e7e2 (diff) | |
| download | lua-fffbaede758abe3b460621962113c352dbd7c605.tar.gz lua-fffbaede758abe3b460621962113c352dbd7c605.tar.bz2 lua-fffbaede758abe3b460621962113c352dbd7c605.zip | |
detail
| -rw-r--r-- | lapi.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.h,v 2.3 2006/07/11 15:53:29 roberto Exp roberto $ | 2 | ** $Id: lapi.h,v 2.4 2009/03/10 17:14:37 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 | */ |
| @@ -14,7 +14,7 @@ | |||
| 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) \ | 16 | #define adjustresults(L,nres) \ |
| 17 | { if ((nres) == LUA_MULTRET && L->top >= L->ci->top) L->ci->top = L->top; } | 17 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } |
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | #endif | 20 | #endif |
