diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-09 11:50:08 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-09 11:50:08 -0200 |
| commit | 80b3d28f4a9e518bf40b35f786199919180bfcd4 (patch) | |
| tree | e25a410ba61883244207e25b16a853991b417ebb /lapi.c | |
| parent | 69d97712ecfcd06aa4edb7374b262131210d0bbc (diff) | |
| download | lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.tar.gz lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.tar.bz2 lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.zip | |
details (mainly error messages)
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 1.10 1997/11/27 18:25:14 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.11 1997/11/28 16:56:05 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 | */ |
| @@ -142,7 +142,7 @@ lua_Object lua_rawgettable (void) | |||
| 142 | { | 142 | { |
| 143 | checkCparams(2); | 143 | checkCparams(2); |
| 144 | if (ttype(L->stack.top-2) != LUA_T_ARRAY) | 144 | if (ttype(L->stack.top-2) != LUA_T_ARRAY) |
| 145 | lua_error("indexed expression not a table in raw gettable"); | 145 | lua_error("indexed expression not a table in rawgettable"); |
| 146 | else { | 146 | else { |
| 147 | TObject *h = luaH_get(avalue(L->stack.top-2), L->stack.top-1); | 147 | TObject *h = luaH_get(avalue(L->stack.top-2), L->stack.top-1); |
| 148 | --L->stack.top; | 148 | --L->stack.top; |
| @@ -490,7 +490,7 @@ char *lua_getobjname (lua_Object o, char **name) | |||
| 490 | void lua_beginblock (void) | 490 | void lua_beginblock (void) |
| 491 | { | 491 | { |
| 492 | if (L->numCblocks >= MAX_C_BLOCKS) | 492 | if (L->numCblocks >= MAX_C_BLOCKS) |
| 493 | lua_error("`lua_beginblock': too many nested blocks"); | 493 | lua_error("too many nested blocks"); |
| 494 | L->Cblocks[L->numCblocks] = L->Cstack; | 494 | L->Cblocks[L->numCblocks] = L->Cstack; |
| 495 | L->numCblocks++; | 495 | L->numCblocks++; |
| 496 | } | 496 | } |
