diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-18 17:11:52 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-18 17:11:52 -0300 |
| commit | 24d6d0528ddecf787f3fa79c9e7e2c3afb73bd3f (patch) | |
| tree | 9f5a19f328d820eaa0859fa1eafa751e86e40026 | |
| parent | 0b00e7f1a20b5c4c3f21aaf163818335d0d61928 (diff) | |
| download | lua-24d6d0528ddecf787f3fa79c9e7e2c3afb73bd3f.tar.gz lua-24d6d0528ddecf787f3fa79c9e7e2c3afb73bd3f.tar.bz2 lua-24d6d0528ddecf787f3fa79c9e7e2c3afb73bd3f.zip | |
api.c only needs to check pushes when api_check is defined
| -rw-r--r-- | lapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 1.176 2002/03/07 18:15:10 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.177 2002/03/18 18:18:35 roberto Exp roberto $ |
| 3 | ** Lua API | 3 | ** Lua API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -35,7 +35,8 @@ const char lua_ident[] = | |||
| 35 | 35 | ||
| 36 | #define api_checknelems(L, n) api_check(L, (n) <= (L->top - L->ci->base)) | 36 | #define api_checknelems(L, n) api_check(L, (n) <= (L->top - L->ci->base)) |
| 37 | 37 | ||
| 38 | #define api_incr_top(L) incr_top(L) | 38 | #define api_incr_top(L) (api_check(L, L->top+1<L->stack_last), L->top++) |
| 39 | |||
| 39 | 40 | ||
| 40 | 41 | ||
| 41 | 42 | ||
