diff options
author | Mike Pall <mike> | 2010-12-22 23:21:38 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-12-22 23:21:38 +0100 |
commit | c0ffe7d39409b403b8e24484bd4f5ef67afa4507 (patch) | |
tree | 7b3a08212b51b031e130c8120e7635731f78a601 /src/lib_ffi.c | |
parent | 4f2f44dd97b56cd7ba07c3a9a08fcdd78913805e (diff) | |
download | luajit-c0ffe7d39409b403b8e24484bd4f5ef67afa4507.tar.gz luajit-c0ffe7d39409b403b8e24484bd4f5ef67afa4507.tar.bz2 luajit-c0ffe7d39409b403b8e24484bd4f5ef67afa4507.zip |
FFI: Record cdata allocations.
Diffstat (limited to 'src/lib_ffi.c')
-rw-r--r-- | src/lib_ffi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib_ffi.c b/src/lib_ffi.c index c526df40..e7108c59 100644 --- a/src/lib_ffi.c +++ b/src/lib_ffi.c | |||
@@ -109,7 +109,7 @@ LJLIB_CF(ffi_meta___newindex) LJLIB_REC(cdata_index 1) | |||
109 | /* Forward declaration. */ | 109 | /* Forward declaration. */ |
110 | static int lj_cf_ffi_new(lua_State *L); | 110 | static int lj_cf_ffi_new(lua_State *L); |
111 | 111 | ||
112 | LJLIB_CF(ffi_meta___call) | 112 | LJLIB_CF(ffi_meta___call) LJLIB_REC(cdata_call) |
113 | { | 113 | { |
114 | GCcdata *cd = ffi_checkcdata(L, 1); | 114 | GCcdata *cd = ffi_checkcdata(L, 1); |
115 | if (cd->typeid == CTID_CTYPEID) | 115 | if (cd->typeid == CTID_CTYPEID) |
@@ -163,7 +163,7 @@ LJLIB_CF(ffi_cdef) | |||
163 | return 0; | 163 | return 0; |
164 | } | 164 | } |
165 | 165 | ||
166 | LJLIB_CF(ffi_new) | 166 | LJLIB_CF(ffi_new) LJLIB_REC(.) |
167 | { | 167 | { |
168 | CTState *cts = ctype_cts(L); | 168 | CTState *cts = ctype_cts(L); |
169 | CTypeID id = ffi_checkctype(L, cts); | 169 | CTypeID id = ffi_checkctype(L, cts); |