[compiler-rt] r202296 - Emulate C99/C++11 __func__ for Visual C++.

Joerg Sonnenberger joerg at britannica.bec.de
Wed Feb 26 13:30:07 PST 2014


On Wed, Feb 26, 2014 at 01:06:48PM -0800, Reid Kleckner wrote:
> I'd really rather not muck around in the implementors namespace like this.
>  If the compiler is actually clang-cl (which claims to be MSVC) or MSVC
> 2013 CTP, then __func__ will be available, and who knows what will happen.

Can you try the attached patch, which uses a feature test? I am assuming
that C and C++ compiler support it both, if the former has it.

Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check-func.diff
Type: text/x-diff
Size: 987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140226/6115ab94/attachment.diff>


More information about the llvm-commits mailing list