Re: Getting a pointer to a vtable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux