diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-17 10:02:41 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-17 10:02:41 -0200 |
commit | 497f042fadb76bdca15fec27ea087a9995182005 (patch) | |
tree | be70b4106498adc41462617f4af97352e12393ae /ldblib.c | |
parent | 2ed07ea8c1912a6e2c44924764934fe30f6b9db2 (diff) | |
download | lua-497f042fadb76bdca15fec27ea087a9995182005.tar.gz lua-497f042fadb76bdca15fec27ea087a9995182005.tar.bz2 lua-497f042fadb76bdca15fec27ea087a9995182005.zip |
detail
Diffstat (limited to 'ldblib.c')
-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); |