S
seannakasone
Is there a way to get the callstack level in c++? for example, take
the following code:
void call3() {
//callstack level would be 3
}
void call2() {
//callstack level would be 2
call3();
}
int main() {
//callstack level would be 1
call2();
return 0;
}
And I don't mean obtaining it from using a debugger and looking at the
callstack. I'm mean obtaining it programmatically.
the following code:
void call3() {
//callstack level would be 3
}
void call2() {
//callstack level would be 2
call3();
}
int main() {
//callstack level would be 1
call2();
return 0;
}
And I don't mean obtaining it from using a debugger and looking at the
callstack. I'm mean obtaining it programmatically.