[Mesa-dev] __func__ vs. __FUNCTION__

Brian Paul brianp at vmware.com
Thu Aug 4 14:38:29 UTC 2016


On 08/04/2016 07:56 AM, Jason Ekstrand wrote:
> On Aug 4, 2016 12:46 AM, "Enrico Weigelt, metux IT consult"
> <enrico.weigelt at gr13.net <mailto:enrico.weigelt at gr13.net>> wrote:
>  >
>  > On 03.08.2016 12:20, Eric Engestrom wrote:
>  >
>  > > BTW, c99_compat.h has a #define for __func__ where needed, so this
>  > > change (removing use of __FUNCTION__) is a good one indeed :)
>  >
>  > Did a few experiments w/ gcc vs msvc. The common denominator is
>  > both define __FUNCTION__, so I moved there and dropped the defines
>  > in c99_compat.h.
>
> Can we please move towards the standard and not away from it?  MSVC has
> support for __func__ now at least in C++ in recent versions.  They will
> probably gain it eventually for C as well.

I second that.

-Brian




More information about the mesa-dev mailing list