C++ Logo

sg10

Advanced search

[SG10] Adding a macro to identify the ABI

From: Saleem Abdulrasool <compnerd_at_[hidden]>
Date: Sat, 07 Jan 2017 01:45:11 +0000
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

Received on 2017-01-07 02:45:23