From 955def034814e96f5f8e42def2e47ca6817ef103 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 16 May 2002 15:39:46 -0300 Subject: new names for string formating functions --- ldebug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index eb2aa527..2a94dc09 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.115 2002/05/14 17:52:22 roberto Exp roberto $ +** $Id: ldebug.c,v 1.116 2002/05/15 18:57:44 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -517,13 +517,13 @@ void luaG_runerror (lua_State *L, const char *fmt, ...) { const char *msg; va_list argp; va_start(argp, fmt); - msg = luaO_vpushstr(L, fmt, argp); + msg = luaO_pushvfstring(L, fmt, argp); va_end(argp); if (isLmark(L->ci)) { char buff[LUA_IDSIZE]; int line = currentline(L, L->ci); luaO_chunkid(buff, getstr(getluaproto(L->ci)->source), LUA_IDSIZE); - msg = luaO_pushstr(L, "%s:%d: %s", buff, line, msg); + msg = luaO_pushfstring(L, "%s:%d: %s", buff, line, msg); } luaD_error(L, msg, LUA_ERRRUN); } -- cgit v1.2.3-55-g6feb