aboutsummaryrefslogtreecommitdiff
path: root/src/lj_gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_gc.c')
-rw-r--r--src/lj_gc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lj_gc.c b/src/lj_gc.c
index c9c5e131..e0f74404 100644
--- a/src/lj_gc.c
+++ b/src/lj_gc.c
@@ -19,6 +19,9 @@
19#include "lj_meta.h" 19#include "lj_meta.h"
20#include "lj_state.h" 20#include "lj_state.h"
21#include "lj_frame.h" 21#include "lj_frame.h"
22#if LJ_HASFFI
23#include "lj_cdata.h"
24#endif
22#include "lj_trace.h" 25#include "lj_trace.h"
23#include "lj_vm.h" 26#include "lj_vm.h"
24 27
@@ -373,7 +376,11 @@ static const GCFreeFunc gc_freefunc[] = {
373#else 376#else
374 (GCFreeFunc)0, 377 (GCFreeFunc)0,
375#endif 378#endif
376 (GCFreeFunc)0, /* Placeholder for C data. */ 379#if LJ_HASFFI
380 (GCFreeFunc)lj_cdata_free,
381#else
382 (GCFreeFunc)0,
383#endif
377 (GCFreeFunc)lj_tab_free, 384 (GCFreeFunc)lj_tab_free,
378 (GCFreeFunc)lj_udata_free 385 (GCFreeFunc)lj_udata_free
379}; 386};