diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-16 15:39:46 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-16 15:39:46 -0300 |
commit | 955def034814e96f5f8e42def2e47ca6817ef103 (patch) | |
tree | d8eea96980860d1d1e5005ee6ecedb47fa64d594 /ldebug.c | |
parent | 9c3b3f82fe1b0942183ddeef2e16d60bab4f4c06 (diff) | |
download | lua-955def034814e96f5f8e42def2e47ca6817ef103.tar.gz lua-955def034814e96f5f8e42def2e47ca6817ef103.tar.bz2 lua-955def034814e96f5f8e42def2e47ca6817ef103.zip |
new names for string formating functions
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.115 2002/05/14 17:52:22 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.116 2002/05/15 18:57:44 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -517,13 +517,13 @@ void luaG_runerror (lua_State *L, const char *fmt, ...) { | |||
517 | const char *msg; | 517 | const char *msg; |
518 | va_list argp; | 518 | va_list argp; |
519 | va_start(argp, fmt); | 519 | va_start(argp, fmt); |
520 | msg = luaO_vpushstr(L, fmt, argp); | 520 | msg = luaO_pushvfstring(L, fmt, argp); |
521 | va_end(argp); | 521 | va_end(argp); |
522 | if (isLmark(L->ci)) { | 522 | if (isLmark(L->ci)) { |
523 | char buff[LUA_IDSIZE]; | 523 | char buff[LUA_IDSIZE]; |
524 | int line = currentline(L, L->ci); | 524 | int line = currentline(L, L->ci); |
525 | luaO_chunkid(buff, getstr(getluaproto(L->ci)->source), LUA_IDSIZE); | 525 | luaO_chunkid(buff, getstr(getluaproto(L->ci)->source), LUA_IDSIZE); |
526 | msg = luaO_pushstr(L, "%s:%d: %s", buff, line, msg); | 526 | msg = luaO_pushfstring(L, "%s:%d: %s", buff, line, msg); |
527 | } | 527 | } |
528 | luaD_error(L, msg, LUA_ERRRUN); | 528 | luaD_error(L, msg, LUA_ERRRUN); |
529 | } | 529 | } |