C++ Logo

SG10

Advanced search

Subject: [SG10] Adding a macro to identify the ABI
From: Saleem Abdulrasool (compnerd_at_[hidden])
Date: 2017-01-06 19:45:11


Hi,

I was wondering if it would be possible to add a macro to identify the
underlying ABI that the C++ runtime is using? Although itanium is the more
popular choice, there are alternative ABIs such as the one which Microsoft
uses. I would propose something like the following:

__cpp_abi_itanium
__cpp_abi_microsoft

They would be defined to 1 based on which is being used. This would allow
the implementation to change the behavior based on the ABI being used.

Thanks!

-- 
Saleem Abdulrasool
compnerd (at) compnerd (dot) org



SG10 list run by sg10-owner@lists.isocpp.org