It sure looks like that file did not get regenerated. The 3 lines starting with /* CONTROL */ are the generated code for the “control stop” OAL.
The prior line to set the run flag to false will cause the application to stop. That flag controls the event processing loop (just grep the code to see where it is used). When it goes false, event processing will stop and the application will exit.