Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::app::deadstart::ATEXIT_PRIORITY Macro
C++
#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.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!