Run all OnEnd hooks without ending?

BlitzMax Forums/BlitzMax Programming/Run all OnEnd hooks without ending?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

OnEnd EndProgram()


'.....
Function EndProgram()
'Do Stuff Here!
End Function


Simple, Da?

The program will end when the user wishes as normal, calling EndProgram() before ending.

You can now call EndProgram() however, which does the same thing without exiting! :)

(I'm going to assume this isn't what you meant though ;) )