aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-11-17 10:02:41 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-11-17 10:02:41 -0200
commit497f042fadb76bdca15fec27ea087a9995182005 (patch)
treebe70b4106498adc41462617f4af97352e12393ae
parent2ed07ea8c1912a6e2c44924764934fe30f6b9db2 (diff)
downloadlua-497f042fadb76bdca15fec27ea087a9995182005.tar.gz
lua-497f042fadb76bdca15fec27ea087a9995182005.tar.bz2
lua-497f042fadb76bdca15fec27ea087a9995182005.zip
detail
-rw-r--r--ldblib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldblib.c b/ldblib.c
index 09e22176..cac06e77 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -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);