1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-09 07:00:23 +02:00
guile/gc-conservative-ref.h
Andy Wingo 1944b54a19 Whippet can trace conservative roots
Next up, enabling it via the makefiles.
2022-10-03 16:09:21 +02:00

17 lines
401 B
C

#ifndef GC_CONSERVATIVE_REF_H
#define GC_CONSERVATIVE_REF_H
#include <stdint.h>
struct gc_conservative_ref {
uintptr_t value;
};
static inline struct gc_conservative_ref gc_conservative_ref(uintptr_t value) {
return (struct gc_conservative_ref){value};
}
static inline uintptr_t gc_conservative_ref_value(struct gc_conservative_ref ref) {
return ref.value;
}
#endif // GC_CONSERVATIVE_REF_H