Original Post
Hi,
I wanted to implement a simple class for my framework that keeps track of Objects that are instatiated, that i can put out some information at the end of the execution while debugging like this.
Most important for me is to know the variable name.
The Question: Is there a way to retrieve a string containing the debugging symbols the compiler generates?
I'd like to get that string ( if it is possible ) in the constructor like this:
I fear there's no function like DebugSymbolVarNam, but i think it clarifies what i want to achieve
I wanted to implement a simple class for my framework that keeps track of Objects that are instatiated, that i can put out some information at the end of the execution while debugging like this.
Most important for me is to know the variable name.
The Question: Is there a way to retrieve a string containing the debugging symbols the compiler generates?
I'd like to get that string ( if it is possible ) in the constructor like this:
MyObj::MyObj()
{
char* varname = DebugSymbolVarName(this);
...
}I fear there's no function like DebugSymbolVarNam, but i think it clarifies what i want to achieve