Automatic import of C headers —how to deal with macros?

This page summarizes the projects mentioned and recommended in the original post on /r/ProgrammingLanguages

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Forge

    Parser for the HyperTalk-like Hammer programming language, targeting the Leonie bytecode interpreter. (by uliwitness)

  • A more modern approach is to write a tool to do a rough parse of the preprocessed C headers (I once wrote a simple regex-based PHP script for that for Apple platforms) and then add an "overlay" of hand-written code in your language that can replace parts of the automated import, or provide a more native interface. Swift does that very well, but I think Perl does something similar.

  • langs

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts