aboutsummaryrefslogtreecommitdiff
path: root/src/lib_ffi.c
diff options
context:
space:
mode:
authorMike Pall <mike>2013-05-12 23:52:09 +0200
committerMike Pall <mike>2013-05-12 23:52:09 +0200
commit19a9206caf1df71308bd8e4bd61c082026c6811c (patch)
treeff4827d89b46e6b6d0bc4ab90110496d6e8387be /src/lib_ffi.c
parent7d5acc29181a5194b05fd4650b9e28e4c4978ad1 (diff)
downloadluajit-19a9206caf1df71308bd8e4bd61c082026c6811c.tar.gz
luajit-19a9206caf1df71308bd8e4bd61c082026c6811c.tar.bz2
luajit-19a9206caf1df71308bd8e4bd61c082026c6811c.zip
Refactor internal string formatting.
Diffstat (limited to 'src/lib_ffi.c')
-rw-r--r--src/lib_ffi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib_ffi.c b/src/lib_ffi.c
index 46f27e01..2ac8290b 100644
--- a/src/lib_ffi.c
+++ b/src/lib_ffi.c
@@ -29,6 +29,7 @@
29#include "lj_ccall.h" 29#include "lj_ccall.h"
30#include "lj_ccallback.h" 30#include "lj_ccallback.h"
31#include "lj_clib.h" 31#include "lj_clib.h"
32#include "lj_strfmt.h"
32#include "lj_ff.h" 33#include "lj_ff.h"
33#include "lj_lib.h" 34#include "lj_lib.h"
34 35
@@ -317,7 +318,7 @@ LJLIB_CF(ffi_meta___tostring)
317 } 318 }
318 } 319 }
319 } 320 }
320 lj_str_pushf(L, msg, strdata(lj_ctype_repr(L, id, NULL)), p); 321 lj_strfmt_pushf(L, msg, strdata(lj_ctype_repr(L, id, NULL)), p);
321checkgc: 322checkgc:
322 lj_gc_check(L); 323 lj_gc_check(L);
323 return 1; 324 return 1;