atexit-function needed

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
x-itec
New User
New User
Posts: 3
Joined: Sun Oct 17, 2004 1:52 am

atexit-function needed

Post by x-itec »

I could need an "atexit" function, that may work als following: if the program is terminating, call all atexit-functions before exiting / cleaning up.

example:

atexit(function1())
atexit(function2())
...

the program exists, but before cleaning up it starts the first, then the 2nd function before cleaning up internally.

An exit-handler is a thing that I am waiting for, and it would help a lot for the things I am developing with pb.
[regged pb user]