diff --git a/gc_heap.c b/gc_heap.c index de906f4d..ea397e96 100644 --- a/gc_heap.c +++ b/gc_heap.c @@ -4,6 +4,8 @@ #include "gc_heap.h" +#if SEXP_USE_IMAGE_LOADING + #define ERR_STR_SIZE 256 char gc_heap_err_str[ERR_STR_SIZE]; @@ -729,3 +731,5 @@ void sexp_gc_heap_stats_print(sexp ctx) printf(" ========================================\n"); printf(" %6zu %7zu\n", total_count, total_size); } + +#endif /* SEXP_USE_IMAGE_LOADING */ diff --git a/include/chibi/sexp.h b/include/chibi/sexp.h index 2bc23fe0..860e1a63 100755 --- a/include/chibi/sexp.h +++ b/include/chibi/sexp.h @@ -1563,7 +1563,7 @@ SEXP_API sexp sexp_finalize (sexp ctx); #if SEXP_USE_GLOBAL_HEAP #define sexp_free_heap(heap) -#define sexp_destroy_context(ctx) +#define sexp_destroy_context(ctx) SEXP_TRUE #else SEXP_API void sexp_free_heap (sexp_heap heap); SEXP_API sexp sexp_destroy_context (sexp ctx); diff --git a/tests/build/build-opts.txt b/tests/build/build-opts.txt index 6321263d..ea0ce31d 100644 --- a/tests/build/build-opts.txt +++ b/tests/build/build-opts.txt @@ -1,5 +1,6 @@ CPPFLAGS=-DSEXP_USE_MODULES=0 CPPFLAGS=-DSEXP_USE_GREEN_THREADS=0 +CPPFLAGS=-DSEXP_USE_IMAGE_LOADING=0 CPPFLAGS=-DSEXP_USE_DL=0 CPPFLAGS=-DSEXP_USE_SIMPLIFY=0 CPPFLAGS=-DSEXP_USE_TYPE_DEFS=0