Does macOS have anything like the FreeBSD macro _FreeBSD_version? That's a macro that gets bumped whenever kernel interfaces change, see https://docs.freebsd.org/en/books/porters-handbook/versions/
Not in the same way.
In general our KPIs are meant to be [1] both source compatible, as we evolve the SDK, and binary compatible, as we evolve macOS. Thus there’s not a call of call for such a version macro.
What behaviour are you expecting to change based on this macro? Because there are probably better ways to handle such things on macOS.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] To be clear, we don’t always achieve this goal )-: