Commit 16d2560
authored
Define RUBY_DEBUG macro if undefined (#532)
* Define RUBY_DEBUG macro if undefined
Add a check and default definition for RUBY_DEBUG to ensure compatibility when RUBY_DEBUG is not already defined.
* Fix TYPED_DATA_EMBEDDED flag for 32/64-bit targets
Ensure correct flag type is used for pointer width, preventing mismatched types on 32-bit and 64-bit architectures.
* Refine ruby debug and assert header inclusion
Replace RUBY_DEBUG guard with HAVE_RUBY_ASSERT_H, include ruby/assert.h when available, and remove manual RUBY_DEBUG definition.
* Update Docker workflow and fix RUBY_DEBUG reference
- Trigger Docker workflow on docker branches
- Fix RUBY_DEBUG path in debug_ruby_assert_type macro
* Move ruby/assert.h include after other headers
Relocate ruby/assert.h inclusion to the end and add RUBY_DEBUG fallback if not present. Ensures correct header order and macro definition.
* Remove ruby/assert.h include and update debug macro
Remove conditional inclusion of ruby/assert.h from wrapper.h.
Update debug_ruby_assert_type! macro to use cfg(ruby_ruby_debug).
* Prevent unused variable warnings in debug macro
Add code to use macro arguments when debug is disabled to avoid compiler warnings.1 parent 68b04c9 commit 16d2560
File tree
4 files changed
+20
-6
lines changed- .github/workflows
- crates/rb-sys/src
- stable_api
4 files changed
+20
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
298 | 302 | | |
299 | 303 | | |
300 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
| |||
0 commit comments