File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ function:
110
110
4 : array
111
111
rb_funcallv_public :
112
112
4 : array
113
+ rb_gc_register_address :
114
+ 1 : in_ref
115
+ rb_gc_unregister_address :
116
+ 1 : in_ref
113
117
rb_get_values_at :
114
118
5 : function
115
119
rb_glob :
Original file line number Diff line number Diff line change 201
201
its ( :typeref ) { should eq typeref ( type : "void" ) }
202
202
its ( :args ) { should eq args }
203
203
end
204
+
205
+ context "rb_gc_register_address" do
206
+ subject { definitions . find { |d | d . name == "rb_gc_register_address" } }
207
+
208
+ let ( :args ) do
209
+ [
210
+ argument ( type : "VALUE" , name : "valptr" , pointer : :in_ref ) ,
211
+ ]
212
+ end
213
+
214
+ its ( :name ) { should eq "rb_gc_register_address" }
215
+ its ( :definition ) { should eq "void rb_gc_register_address(VALUE *valptr)" }
216
+ its ( :typeref ) { should eq typeref ( type : "void" ) }
217
+ its ( :args ) { should eq args }
218
+ end
219
+
220
+ context "rb_gc_unregister_address" do
221
+ subject { definitions . find { |d | d . name == "rb_gc_unregister_address" } }
222
+
223
+ let ( :args ) do
224
+ [
225
+ argument ( type : "VALUE" , name : "valptr" , pointer : :in_ref ) ,
226
+ ]
227
+ end
228
+
229
+ its ( :name ) { should eq "rb_gc_unregister_address" }
230
+ its ( :definition ) { should eq "void rb_gc_unregister_address(VALUE *valptr)" }
231
+ its ( :typeref ) { should eq typeref ( type : "void" ) }
232
+ its ( :args ) { should eq args }
233
+ end
204
234
end
205
235
206
236
describe "#extract_static_inline_function_definitions" do
You can’t perform that action at this time.
0 commit comments