How the API_AVAILABLE Macro Works on macOS: C Preprocessor Deep Dive
· 10 min read
There are various ways one could use C preprocessor macros. Learning how to properly use them--or failing to--can end up producing some bizarre codebases. If you have ever encountered the <os/availability.h> header file on macOS, you'll find some macros that are confusing to interpret.
The API_AVAILABLE Macro Definition
The macro is defined as follows:
