Replies: 2 comments 2 replies
-
UPD: it says registers are ok in ruby, but RB_GC_GUARD is still needed in some cases |
Beta Was this translation helpful? Give feedback.
0 replies
-
I see. I'll try to figure out if it is possible to automatically generate bindings for C macros. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This macro is used to protect
VALUE
s from being GC-ed while they are still in use indirectly (or even directly, as otherwise it may be placed in a register, not on the stack). If for some reason it's not possible to useRB_GC_GUARD
frommemory.h
, another solutions probably exist, as it's a common problem when interacting with conservative GCs. And I believe it should be mentioned in the readme.Beta Was this translation helpful? Give feedback.
All reactions