Merge pull request #487 from vaartis/gc-heap-extern-c

Add C++ extern "C" to gc_heap.h
This commit is contained in:
Alex Shinn 2018-10-05 02:43:08 +08:00 committed by GitHub
commit 78c757af4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,10 @@
#include "chibi/sexp.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Iterate the heap associated with the context argument 'ctx',
calling user provided callbacks for the individual heap elements.
@ -95,5 +99,8 @@ SEXP_API char* sexp_load_image_err();
*/
SEXP_API void sexp_gc_heap_stats_print(sexp ctx);
#ifdef __cplusplus
}
#endif
#endif /* ! SEXP_GC_HEAP_H */