savi-lang / savi

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

Add `:ffi global cpointer` declarator to give the address of a C global. #483

Closed jemc closed 3 months ago

jemc commented 3 months ago

This is useful for C APIs where a value is declared as a global and it is expected to be used in the C API with the & (address of) operator.