aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Cache
diff options
context:
space:
mode:
authorMatthew Roush <matthew.roush@proton.me>2025-04-07 16:53:38 -0400
committerGitHub <noreply@github.com>2025-04-07 20:53:38 +0000
commitfb1d4990cb60e805236122256da99d80c50ee0d4 (patch)
treea88b0bf565d8b6ac27598eda4eca1a46c5582e39 /lib/std/Build/Cache
parentf2f36c49c8856674e0769300a5c2768a47302520 (diff)
downloadzig-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/Cache')
0 files changed, 0 insertions, 0 deletions