[lldb-dev] apples, pears etc: how to use __builtin_availability() elsewhere?
Davide Italiano via lldb-dev
lldb-dev at lists.llvm.org
Thu Sep 13 08:25:29 PDT 2018
On Thu, Sep 13, 2018 at 2:56 AM René J.V. Bertin via lldb-dev
<lldb-dev at lists.llvm.org> wrote:
>
> Hi,
>
> clang has this nice runtime OS version checker but I cannot seem to find if this is useable anywhere except on Apple OSes.
> For ObjC (and thus @available()) one can still argue that the language isn't of much use anywhere else, but that (lousy) argument doesn't fly for__builtin_available() .
>
> Is there a list of known other platforms somewhere, or else is there at least a token that makes the test return false when the current platform is not listed?
>
> If not, how is that NOT a bug?
>
This is lldb-dev, the lldb debugger mailing list. You may consider
directing your question to cfe-dev (the clang mailing list).
--
Davide
More information about the lldb-dev
mailing list