bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature: C preprocessor supports __func__ or __FUNCTION__?


From: Paul Eggert
Subject: Re: Feature: C preprocessor supports __func__ or __FUNCTION__?
Date: Sun, 14 Jul 2002 02:34:48 -0700 (PDT)

> From: "R. Bernstein" <address@hidden>
> Date: Sat, 13 Jul 2002 20:58:07 -0400
> 
> Correct me if I am wrong, but it doesn't look like there is a macro
> that can be used to test if the C preprocessor __func__ or
> __FUNCTION__ "variables" work.

Correct.

> I'd imagine such a test would produce in config.h
> 
> #define __func__ __FUNCTION__ 
>
> if only __FUNCTION__ works, or nothing if __func__ works or 
> 
> #define __func__ "" 
> 
> if neither works.

Sounds reasonable.

> should I try to supply
> a patch to provide such a feature?

Sure!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]