This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
G++ internals question: how do I ...
- To: egcs at cygnus dot com
- Subject: G++ internals question: how do I ...
- From: Warner Losh <imp at village dot org>
- Date: Thu, 19 Nov 1998 12:29:36 -0700 (MST)
I have a need, for debugging purposes, to have g++ generate an extra call
at the end of every constructor to a special function with the parameters
of this and sizeof(*this). The numbere of classes that I'd like to do this
with is huge, so I was hoping to modify the compiler a little to help me
out. Where would I look to insert this code? It should be the last
thing done before the ctor returns.
Thanks much for any help you can give me here.
Warner