You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a catch-all ticket currently for generating bindings for "all" macros, though we will almost certainly have to do this on an ad-hoc basis, supporting macros of a certain shape only:
The idea is to have some bootstrapping code as part of `hs-bindgen` that trawls
the C standard headers looking for type definitions (such as `uint64_t`); these
types should become part of a prelude, which we can recognize out of the box
(so that instead of generating a new typedef for `uint64_t` every time we
generate bindings, we use the one and only from the prelude).
Since the standard headers also contain a whole bunch of macros, and we anyway
want to support generating bindings for specific forms of macros (#43), this
also has the beginnings of a parser for C macros.
The idea is to have some bootstrapping code as part of `hs-bindgen` that trawls
the C standard headers looking for type definitions (such as `uint64_t`); these
types should become part of a prelude, which we can recognize out of the box
(so that instead of generating a new typedef for `uint64_t` every time we
generate bindings, we use the one and only from the prelude).
Since the standard headers also contain a whole bunch of macros, and we anyway
want to support generating bindings for specific forms of macros (#43), this
also has the beginnings of a parser for C macros.
This is a catch-all ticket currently for generating bindings for "all" macros, though we will almost certainly have to do this on an ad-hoc basis, supporting macros of a certain shape only:
The text was updated successfully, but these errors were encountered: