getditto / safer_ffi

Write safer FFI code in Rust without polluting it with unsafe code
http://getditto.github.io/safer_ffi
MIT License
925 stars 40 forks source link

C header gen: optional extra text directly after the include guard #199

Closed pixsperdavid closed 9 months ago

pixsperdavid commented 9 months ago

I need this specifically to add some definitions for DLL function importing when loading functions from a DLL on windows (__declspec(dllimport)).

pixsperdavid commented 9 months ago

Thanks for approving! No need an official release yet as there's another piece of work to do before this is usable, see https://github.com/getditto/safer_ffi/discussions/202

danielhenrymantilla commented 9 months ago

(took the liberty to shorten the PR title to get a shorter commit title)