aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-09 11:50:08 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-12-09 11:50:08 -0200
commit80b3d28f4a9e518bf40b35f786199919180bfcd4 (patch)
treee25a410ba61883244207e25b16a853991b417ebb /lapi.c
parent69d97712ecfcd06aa4edb7374b262131210d0bbc (diff)
downloadlua-80b3d28f4a9e518bf40b35f786199919180bfcd4.tar.gz
lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.tar.bz2
lua-80b3d28f4a9e518bf40b35f786199919180bfcd4.zip
details (mainly error messages)
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index b813d73d..63409950 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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)
490void lua_beginblock (void) 490void 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}