Re: How can i read the stack frames of running process?
- From: Philip Potter <pgp@xxxxxxxxxxxxxxx>
- Date: Wed, 17 Oct 2007 16:33:02 +0100
Mark Bluemel wrote:
harshal wrote:but my question is that if a function can print its name with
__FUNCTION__
macro then why it can not print its callers name.
The __FUNCTION__ macro is handled by the preprocessor and is simply a textual replacement at compile time. It's not (terribly) difficult for the preprocessor to track which function it's processing at a time.
I can't find any mention of __FUNCTION__ in n1256. I *can* find __func__. Is __FUNCTION__ at all standard?
--
Philip Potter pgp <at> doc.ic.ac.uk
.
- Follow-Ups:
- Re: How can i read the stack frames of running process?
- From: Mark Bluemel
- Re: How can i read the stack frames of running process?
- References:
- How can i read the stack frames of running process?
- From: harshal
- Re: How can i read the stack frames of running process?
- From: Richard Bos
- Re: How can i read the stack frames of running process?
- From: harshal
- Re: How can i read the stack frames of running process?
- From: Mark Bluemel
- How can i read the stack frames of running process?
- Prev by Date: Re: Getting sizeof an anonymous struct declared inside a union
- Next by Date: Re: How can i read the stack frames of running process?
- Previous by thread: Re: How can i read the stack frames of running process?
- Next by thread: Re: How can i read the stack frames of running process?
- Index(es):
Relevant Pages
|