From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <20060409215708.12577.qmail@g.galapagos.bx.psu.edu> Date: Sun, 9 Apr 2006 17:57:08 -0400 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] Good enough approximation for ape/pcc In-reply-to: References: Date: Sun, 09 Apr 2006 17:57:08 -0400 From: Scott Schwartz Topicbox-Message-UUID: 33c79ad6-ead1-11e9-9d60-3106f5b1d025 | if you're writing the print statement, | you *know* which function you're in. But why should I have to type the particular value several times? What if I change the name of the function later? Isn't that what variables are for? | it's only useful inside macros, | which are mostly deprecated. Nah, even simple function calls can use it. check(a, b, c, __func__); It's true, it would be nice to find out the caller from within check(), but this achieves most of the utility with a much simpler implementation.