Sack Library Documentation
|
#define ATEXIT_PRIORITY(name,priority) static void name(void); \ static class pastejunk(schedule_,name) { \ public:pastejunk(schedule_,name)() { \ RegisterPriorityShutdownProc( name,_WIDE(#name),priority,(void*)this,WIDE__FILE__,__LINE__ );\ } \ } pastejunk(do_schedule_,name); \ static void name(void)
A macro to define some code to run during program shutdown. An additional priority may be specified if the order matters. Higher numbers are called first.
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|