Commit 662fbd3
fix: make C API compatible with macOS
Use `c_char` (signed on macOS) instead of `u8` for all FFI string
parameters in c.zig, and change the public InstrumentHooks type to an
opaque struct so the header and generated core.c agree on the type
layout. The release script now post-processes Zig's mangled struct
names into stable `struct InstrumentHooks`.
Also fixes CMakeLists using CMAKE_CXX_COMPILER_ID for a C-only project
and removes the release dependency from example build targets.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0c97182 commit 662fbd3
7 files changed
Lines changed: 6004 additions & 5953 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments