summaryrefslogtreecommitdiff
path: root/libguile/whippet/api/gc-config.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/whippet/api/gc-config.h')
-rw-r--r--libguile/whippet/api/gc-config.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/libguile/whippet/api/gc-config.h b/libguile/whippet/api/gc-config.h
new file mode 100644
index 000000000..867af63d2
--- /dev/null
+++ b/libguile/whippet/api/gc-config.h
@@ -0,0 +1,40 @@
+#ifndef GC_CONFIG_H
+#define GC_CONFIG_H
+
+#ifndef GC_DEBUG
+#define GC_DEBUG 0
+#endif
+
+#ifndef GC_HAS_IMMEDIATES
+#define GC_HAS_IMMEDIATES 1
+#endif
+
+#ifndef GC_PARALLEL
+#define GC_PARALLEL 0
+#endif
+
+#ifndef GC_GENERATIONAL
+#define GC_GENERATIONAL 0
+#endif
+
+// Though you normally wouldn't configure things this way, it's possible
+// to have both precise and conservative roots. However we have to
+// either have precise or conservative tracing; not a mix.
+
+#ifndef GC_PRECISE_ROOTS
+#define GC_PRECISE_ROOTS 0
+#endif
+
+#ifndef GC_CONSERVATIVE_ROOTS
+#define GC_CONSERVATIVE_ROOTS 0
+#endif
+
+#ifndef GC_CONSERVATIVE_TRACE
+#define GC_CONSERVATIVE_TRACE 0
+#endif
+
+#ifndef GC_CONCURRENT_TRACE
+#define GC_CONCURRENT_TRACE 0
+#endif
+
+#endif // GC_CONFIG_H