The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.c
From: Kalle Olavi Niemitalo <k...@iki.fi>
Date: 19 Oct 2001 15:12:38 +0300
Local: Fri 19 Oct 2001 13:12
Subject: Re: __FUNCTION__ ????
sob...@eudoramail.com (Sobhan Vezzu) writes: __FUNCTION__ is a GCC-specific extension. Please read the node > I understood that __FUNCTION__ is a preprocessor macro, which > will substitute a file name. Similar to __FILE__ and __LINE__. "Function Names" in the GCC Info file or "Function Names as Strings" in the printed manual; it's all explained there. > 1) I have written a small code, only for __FUNCTION__ it __FUNCTION__ is not a preprocessor macro, because the preprocessor > prints as unknown why? does not know about functions. C99 has a similar identifier __func__, which isn't a preprocessor > 2) Where do I get a list of all the preprocessor macros. If you're using GCC on Unix, you can do this: gcc -E -dM -xc /dev/null i.e., preprocess an empty file as C and list all defined macros when You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||