diff options
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.96 2005/05/16 18:45:15 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.97 2005/05/16 21:19:00 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,8 +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, LUA_SM " cannot change environment of given object", | 51 | luaL_error(L, LUA_QL("setfenv") |
52 | "setfenv"); | 52 | " cannot change environment of given object"); |
53 | return 1; | 53 | return 1; |
54 | } | 54 | } |
55 | 55 | ||
@@ -348,7 +348,7 @@ static int db_errorfb (lua_State *L) { | |||
348 | if (ar.currentline > 0) | 348 | if (ar.currentline > 0) |
349 | lua_pushfstring(L, "%d:", ar.currentline); | 349 | lua_pushfstring(L, "%d:", ar.currentline); |
350 | if (*ar.namewhat != '\0') /* is there a name? */ | 350 | if (*ar.namewhat != '\0') /* is there a name? */ |
351 | lua_pushfstring(L, " in function " LUA_SM, ar.name); | 351 | lua_pushfstring(L, " in function " LUA_QS, ar.name); |
352 | else { | 352 | else { |
353 | if (*ar.what == 'm') /* main? */ | 353 | if (*ar.what == 'm') /* main? */ |
354 | lua_pushfstring(L, " in main chunk"); | 354 | lua_pushfstring(L, " in main chunk"); |