aboutsummaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ldblib.c b/ldblib.c
index ffe781a6..6905869e 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.95 2005/05/05 20:47:02 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.96 2005/05/16 18:45:15 roberto Exp roberto $
3** Interface from Lua to its debug API 3** Interface from Lua to its debug API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -48,7 +48,8 @@ static int db_setfenv (lua_State *L) {
48 luaL_checktype(L, 2, LUA_TTABLE); 48 luaL_checktype(L, 2, LUA_TTABLE);
49 lua_settop(L, 2); 49 lua_settop(L, 2);
50 if (lua_setfenv(L, 1) == 0) 50 if (lua_setfenv(L, 1) == 0)
51 luaL_error(L, "`setfenv' cannot change environment of given object"); 51 luaL_error(L, LUA_SM " cannot change environment of given object",
52 "setfenv");
52 return 1; 53 return 1;
53} 54}
54 55
@@ -347,7 +348,7 @@ static int db_errorfb (lua_State *L) {
347 if (ar.currentline > 0) 348 if (ar.currentline > 0)
348 lua_pushfstring(L, "%d:", ar.currentline); 349 lua_pushfstring(L, "%d:", ar.currentline);
349 if (*ar.namewhat != '\0') /* is there a name? */ 350 if (*ar.namewhat != '\0') /* is there a name? */
350 lua_pushfstring(L, " in function `%s'", ar.name); 351 lua_pushfstring(L, " in function " LUA_SM, ar.name);
351 else { 352 else {
352 if (*ar.what == 'm') /* main? */ 353 if (*ar.what == 'm') /* main? */
353 lua_pushfstring(L, " in main chunk"); 354 lua_pushfstring(L, " in main chunk");