Does someone know if in C++ is there a function to get the name of all the variables defined in a code?
Example code:
int main() { double Var1; double Var2; UnknownFunction(); } In this case the function I'm searching for(UnknownFunction) should output a vector of strings containing "Var1" and "Var2".
Thank you in advance.
doublehere)?