diff options
| author | Matthew Roush <matthew.roush@proton.me> | 2025-04-07 16:53:38 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-07 20:53:38 +0000 |
| commit | fb1d4990cb60e805236122256da99d80c50ee0d4 (patch) | |
| tree | a88b0bf565d8b6ac27598eda4eca1a46c5582e39 /lib/std/Build/Module.zig | |
| parent | f2f36c49c8856674e0769300a5c2768a47302520 (diff) | |
| download | zig-fb1d4990cb60e805236122256da99d80c50ee0d4.tar.gz zig-fb1d4990cb60e805236122256da99d80c50ee0d4.zip | |
Make translate-c more robust in handling macro functions.
Translate-c didn't properly account for C macro functions having parameter names that are C keywords. So something like `#define FOO(float) ((float) + 10)` would've been interpreted as casting `+10` to a `float` type, instead of adding `10` to the parameter `float`.
An example of a real-world macro function like this is SDL3's `SDL_DEFINE_AUDIO_FORMAT` from `SDL_audio.h`, which uses `signed` as a parameter.
Diffstat (limited to 'lib/std/Build/Module.zig')
0 files changed, 0 insertions, 0 deletions
