diff options
| author | Felipe Contreras <felipe.contreras@gmail.com> | 2021-05-15 16:20:57 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-05-17 07:25:14 -0300 |
| commit | 78c059a24c47f7a2beaa7cd78ce7b8b3cff07d65 (patch) | |
| tree | 07981a33117529fdca96ad36173528536b750003 /bindings/ruby/threads.c | |
| parent | c84ccb70f3ed2b2228346499b5110311039a0ecf (diff) | |
ruby: simplify data get helper
Data_Get_Struct is nothing but a macro that calls
rb_data_object_get with a cast (unnecessary in C).
#define Data_Get_Struct(obj, type, sval) \
((sval) = RBIMPL_CAST((type*)rb_data_object_get(obj)))
We can use rb_data_object_get directly, and this way we don't need to
pass the type, which is unnecessary information.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'bindings/ruby/threads.c')
0 files changed, 0 insertions, 0 deletions
