contents   index   previous   next


The SE_AT_EXIT object contains a number of members who are functions, wrapper or script. These functions should take no parameters. All of the function members are invoked when the current seEval with the flag SE_EXIT_LEVEL completes. The this object for these functions will be the SE_AT_EXIT object they are a part of.


Members of the SE_AT_EXIT object that are not functions are ignored. However, they can be used to store information to be retrieved by an at-exit function through its SE_THIS object.


The sePutWrapper API function is useful for creating functions as members of the SE_AT_EXIT object to then be called.


You should choose member names for your at-exit functions that are unique and unlikely to be duplicated. Using short, common member names runs the risk of overwriting another at-exit function or its associated data members.