savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
154 stars 12 forks source link

Add `:link_lib` declarator, nested under `:ffi` declarations. #404

Closed jemc closed 1 year ago

jemc commented 1 year ago

This declaration is like the global :ffi_link_lib declaration, except that it will only be linked if the associated :ffi function is actually used in the final program.

This is useful for things like platform-specific link libraries.