Skip to content

Commit

Permalink
C: Add option to generate separate header
Browse files Browse the repository at this point in the history
The --c-generate-header flag means we will generate a `.h` file
alongside the `.c` file normally produced.

The behaviour of the C backend now more closely matches other
Sail backends which will use `out` as the default basename when
no `-o` flag is set. The output is still echoed to stdout, but this
behaviour now comes with a deprecation warning.

Also add a --c-header-include flag for includes in the generated
header.
  • Loading branch information
Alasdair committed Feb 5, 2025
1 parent 54d6aab commit 5be009f
Show file tree
Hide file tree
Showing 4 changed files with 407 additions and 302 deletions.
Loading

0 comments on commit 5be009f

Please sign in to comment.