aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-15 15:57:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-15 15:57:44 -0300
commitb7a0503c1d72603b8f7e480f2abecbc05348cb69 (patch)
treebfac646fea320f73abec2ee57a0c96a704452884 /lapi.c
parent1c328a191a8b86b7ad601cb9a935f1da5373fdf7 (diff)
downloadlua-b7a0503c1d72603b8f7e480f2abecbc05348cb69.tar.gz
lua-b7a0503c1d72603b8f7e480f2abecbc05348cb69.tar.bz2
lua-b7a0503c1d72603b8f7e480f2abecbc05348cb69.zip
new format for error messages
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index 87a2abbe..eae26308 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.189 2002/05/06 19:05:10 roberto Exp roberto $ 2** $Id: lapi.c,v 1.190 2002/05/07 17:36:56 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*/
@@ -11,6 +11,7 @@
11#include "lua.h" 11#include "lua.h"
12 12
13#include "lapi.h" 13#include "lapi.h"
14#include "ldebug.h"
14#include "ldo.h" 15#include "ldo.h"
15#include "lfunc.h" 16#include "lfunc.h"
16#include "lgc.h" 17#include "lgc.h"
@@ -521,8 +522,8 @@ LUA_API void lua_setmetatable (lua_State *L, int objindex) {
521 uvalue(obj)->uv.metatable = hvalue(mt); 522 uvalue(obj)->uv.metatable = hvalue(mt);
522 break; 523 break;
523 default: 524 default:
524 luaO_verror(L, "cannot change the meta table of a %s", 525 luaG_runerror(L, "cannot change the meta table of a %s",
525 luaT_typenames[ttype(obj)]); 526 luaT_typenames[ttype(obj)]);
526 } 527 }
527 lua_unlock(L); 528 lua_unlock(L);
528} 529}