aboutsummaryrefslogtreecommitdiff
path: root/src/lj_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_api.c')
-rw-r--r--src/lj_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_api.c b/src/lj_api.c
index edb2d620..451e4444 100644
--- a/src/lj_api.c
+++ b/src/lj_api.c
@@ -24,6 +24,7 @@
24#include "lj_trace.h" 24#include "lj_trace.h"
25#include "lj_vm.h" 25#include "lj_vm.h"
26#include "lj_strscan.h" 26#include "lj_strscan.h"
27#include "lj_strfmt.h"
27 28
28/* -- Common helper functions --------------------------------------------- */ 29/* -- Common helper functions --------------------------------------------- */
29 30
@@ -606,7 +607,7 @@ LUA_API const char *lua_pushvfstring(lua_State *L, const char *fmt,
606 va_list argp) 607 va_list argp)
607{ 608{
608 lj_gc_check(L); 609 lj_gc_check(L);
609 return lj_str_pushvf(L, fmt, argp); 610 return lj_strfmt_pushvf(L, fmt, argp);
610} 611}
611 612
612LUA_API const char *lua_pushfstring(lua_State *L, const char *fmt, ...) 613LUA_API const char *lua_pushfstring(lua_State *L, const char *fmt, ...)
@@ -615,7 +616,7 @@ LUA_API const char *lua_pushfstring(lua_State *L, const char *fmt, ...)
615 va_list argp; 616 va_list argp;
616 lj_gc_check(L); 617 lj_gc_check(L);
617 va_start(argp, fmt); 618 va_start(argp, fmt);
618 ret = lj_str_pushvf(L, fmt, argp); 619 ret = lj_strfmt_pushvf(L, fmt, argp);
619 va_end(argp); 620 va_end(argp);
620 return ret; 621 return ret;
621} 622}