When executing a C++ program, How can I find out the name of the function that is currently being executed. If assume my program main is calling a function f1() and that in turn is calling f2(). Then at any given time how can I find out which function has completed execution.
i am creating an automatic garbage collector and I need to know where the program control is during collection phase so that the memory of the functions that have finished execution is collected.
i am creating an automatic garbage collector and I need to know where the program control is during collection phase so that the memory of the functions that have finished execution is collected.
Comment