diff options
-rw-r--r-- | ldblib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.87 2004/08/13 18:02:36 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.88 2004/09/21 17:58:06 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 | */ |
@@ -261,7 +261,7 @@ static int debug (lua_State *L) { | |||
261 | if (fgets(buffer, sizeof(buffer), stdin) == 0 || | 261 | if (fgets(buffer, sizeof(buffer), stdin) == 0 || |
262 | strcmp(buffer, "cont\n") == 0) | 262 | strcmp(buffer, "cont\n") == 0) |
263 | return 0; | 263 | return 0; |
264 | if (luaL_loadbuffer(L, buffer, strlen(buffer), "=debug command") || | 264 | if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") || |
265 | lua_pcall(L, 0, 0, 0)) { | 265 | lua_pcall(L, 0, 0, 0)) { |
266 | fputs(lua_tostring(L, -1), stderr); | 266 | fputs(lua_tostring(L, -1), stderr); |
267 | fputs("\n", stderr); | 267 | fputs("\n", stderr); |