- To: Mike Hommey <mh@xxxxxxxxxxxx>
- Subject: Re: Getting a pointer to a vtable
- From: Ian Lance Taylor <iant@xxxxxxxxxx>
- Date: Mon, 26 Mar 2012 13:48:45 -0700
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <20120326100826.GA10429@glandium.org> (Mike Hommey's message of "Mon, 26 Mar 2012 12:08:26 +0200")
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Mike Hommey <mh@xxxxxxxxxxxx> writes:
> Essentially, I would like to do something like:
>
> void *bar = (void *)_ZTV3foo;
>
> Except I only know "foo", and it may be namespaced. So is there some way
> to have g++ do the mangling with a macro or something else?
There is no macro that does mangling, no.
Why not simply
void *bar = &foo;
?
Ian
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]