Last active
January 29, 2016 01:25
-
-
Save kkabdol/8e1239c8654aba7e3fd9 to your computer and use it in GitHub Desktop.
Make sure EngineExit() is always called.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int32 GuardedMain( ... ) | |
| { | |
| // make sure GEngineLoop::Exit() is always called. | |
| struct EngineLoopCleanupGuard | |
| { | |
| ~EngineLoopCleanupGuard() | |
| { | |
| EngineExit(); | |
| } | |
| } CleanupGuard; | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment