mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-09 23:40:29 +02:00
Users will want to set options from an environment variable or something like that. Particular GC implementations will want to expose an expanded set of options. For these reasons we make the options interface a bit more generalized and include parsing.
25 lines
812 B
C
25 lines
812 B
C
#ifndef GC_PLATFORM_H
|
|
#define GC_PLATFORM_H
|
|
|
|
#ifndef GC_IMPL
|
|
#error internal header file, not part of API
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "gc-visibility.h"
|
|
|
|
struct gc_heap;
|
|
|
|
GC_INTERNAL void gc_platform_init(void);
|
|
GC_INTERNAL uintptr_t gc_platform_current_thread_stack_base(void);
|
|
GC_INTERNAL
|
|
void gc_platform_visit_global_conservative_roots(void (*f)(uintptr_t start,
|
|
uintptr_t end,
|
|
struct gc_heap *heap,
|
|
void *data),
|
|
struct gc_heap *heap,
|
|
void *data);
|
|
GC_INTERNAL int gc_platform_processor_count(void);
|
|
|
|
#endif // GC_PLATFORM_H
|