lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 497f042fadb76bdca15fec27ea087a9995182005
parent 2ed07ea8c1912a6e2c44924764934fe30f6b9db2
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 17 Nov 2004 10:02:19 -0200

detail

Diffstat:
Mldblib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ldblib.c b/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.87 2004/08/13 18:02:36 roberto Exp roberto $ +** $Id: ldblib.c,v 1.88 2004/09/21 17:58:06 roberto Exp roberto $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -261,7 +261,7 @@ static int debug (lua_State *L) { if (fgets(buffer, sizeof(buffer), stdin) == 0 || strcmp(buffer, "cont\n") == 0) return 0; - if (luaL_loadbuffer(L, buffer, strlen(buffer), "=debug command") || + if (luaL_loadbuffer(L, buffer, strlen(buffer), "=(debug command)") || lua_pcall(L, 0, 0, 0)) { fputs(lua_tostring(L, -1), stderr); fputs("\n", stderr);