Newsgroups: comp.lang.c
From: Des Walker <des.wal...@amsjv.com>
Date: Fri, 19 Oct 2001 13:11:46 +0100
Local: Fri 19 Oct 2001 13:11
Subject: Re: __FUNCTION__ ????
Sobhan Vezzu wrote: Hi, > Hello All, > I understood that __FUNCTION__ is a preprocessor macro, which > 1) I have written a small code, only for __FUNCTION__ it > #include <stdio.h> > #ifndef __LINE__ > #ifndef __FILE__ > #ifndef __FUNCTION__ > int assert(int bool, int line, char *file, char *fun) > errno = 0; > fp = fopen("t.c", "r"); > bye, C99 introduced the identifier __func__ to provide the function name as a __func__ is not a preprocessor macro like __FILE__ and __LINE__, but an To get a list of current macro definitions, you could do a google search Or you could have a look at Stan Browns' compilation of 'Identifiers not Regards 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.
| ||||||||||||||