jeudi 28 septembre 2017

Stop a c++ code from exiting and pass back control

I am using cling(CERN ROOT) for my project. I have an established an interactive c++ environment. I can execute a main() function from cling command line. However, I want to retain my variable for further processing from command line. All my variables would have been local to main and are freed at the closing brace of main(). Is there any way to execute all commands and not terminate instead pass back control to user with all the loaded environment/variables.

I am looking for something which which stop termination and give back control. Anything would be helpful(something equivalent to continue but out of loop and out of main as well)

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire