Ruby  3.1.4p223 (2023-03-30 revision HEAD)
gc.h
Go to the documentation of this file.
1 #ifndef RBIMPL_GC_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RBIMPL_GC_H
24 #include "ruby/internal/value.h"
25 
27 
28 
34 void rb_gc_register_address(VALUE *valptr);
35 
40 
45 void rb_gc_unregister_address(VALUE *valptr);
46 
54 
56 
57 #endif /* RBIMPL_GC_H */
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:106
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:97
void rb_gc_register_address(VALUE *valptr)
Inform the garbage collector that valptr points to a live Ruby object that should not be moved.
Definition: gc.c:8708
void rb_gc_unregister_address(VALUE *valptr)
Inform the garbage collector that a pointer previously passed to rb_gc_register_address() no longer p...
Definition: gc.c:8720
void rb_gc_register_mark_object(VALUE object)
Inform the garbage collector that object is a live Ruby object that should not be moved.
Definition: gc.c:8687
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition: value.h:40