We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 142da3f commit 124daf7Copy full SHA for 124daf7
2 files changed
.github/workflows/test.yaml
@@ -16,6 +16,7 @@ jobs:
16
os:
17
- ubuntu
18
- macos
19
+ - windows
20
21
ruby:
22
- "3.3"
ext/extconf.rb
@@ -27,7 +27,24 @@
27
$LDFLAGS << " -fsanitize=address -fsanitize=undefined"
28
end
29
30
-have_func("rb_tracearg_instruction_sequence", "ruby/debug.h")
+checking_for("rb_tracearg_instruction_sequence declaration") do
31
+ if try_link(<<~C, "", werror: true)
32
+ #include <ruby.h>
33
+ #include <ruby/debug.h>
34
+
35
+ static VALUE (*rb_tracearg_instruction_sequence_pointer)(rb_trace_arg_t *) = rb_tracearg_instruction_sequence;
36
37
+ int main(void)
38
+ {
39
+ return rb_tracearg_instruction_sequence_pointer == 0;
40
+ }
41
+ C
42
+ $defs << "-DHAVE_RB_TRACEARG_INSTRUCTION_SEQUENCE"
43
+ true
44
+ else
45
+ false
46
+ end
47
+end
48
49
create_header
50
0 commit comments