File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed
lib/cext/include/truffleruby Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -31,18 +31,23 @@ typedef void *VALUE;
31
31
typedef long SIGNED_VALUE ;
32
32
typedef VALUE ID ;
33
33
34
- // Wrapping and unwrapping of values.
35
-
36
- VALUE rb_tr_wrap (VALUE );
37
- VALUE rb_tr_unwrap (VALUE );
38
-
39
34
// Support
40
35
41
36
extern void * rb_tr_cext ;
42
37
#define RUBY_CEXT ((void *)(&rb_tr_cext))
43
38
44
39
#define MUST_INLINE __attribute__((always_inline)) inline
45
40
41
+ // Wrapping and unwrapping of values.
42
+
43
+ MUST_INLINE VALUE rb_tr_wrap (VALUE object ) {
44
+ return polyglot_invoke (RUBY_CEXT , "rb_tr_wrap" , object );
45
+ }
46
+
47
+ MUST_INLINE VALUE rb_tr_unwrap (VALUE object ) {
48
+ return polyglot_invoke (RUBY_CEXT , "rb_tr_unwrap" , object );
49
+ }
50
+
46
51
#include <ruby/thread_native.h>
47
52
48
53
// Helpers
Original file line number Diff line number Diff line change @@ -4623,11 +4623,3 @@ VALUE rb_syserr_new_str(int n, VALUE arg) {
4623
4623
VALUE rb_yield_values2 (int argc , const VALUE * argv ) {
4624
4624
rb_tr_error ("rb_yield_values2 not implemented" );
4625
4625
}
4626
-
4627
- VALUE rb_tr_wrap (VALUE object ) {
4628
- return polyglot_invoke (RUBY_CEXT , "rb_tr_wrap" , object );
4629
- }
4630
-
4631
- VALUE rb_tr_unwrap (VALUE object ) {
4632
- return polyglot_invoke (RUBY_CEXT , "rb_tr_unwrap" , object );
4633
- }
You can’t perform that action at this time.
0 commit comments