Sack Library Documentation
|
#define PRIORITY_PRELOAD(name,priority) static void name(void); \ static class pastejunk(schedule_,name) { \ public:pastejunk(schedule_,name)() { \ RegisterPriorityStartupProc( name,_WIDE(#name),priority,(void*)this,WIDE__FILE__,__LINE__ );\ } \ } pastejunk(do_schedule_,name); \ static void name(void)
Defines some code to run at program inialization time. Allows specification of a priority. Lower priorities run first. (default is 69).
PRIORITY_PRELOAD( MyOtherInit, 153 )
{
// run some code probably after most all other initializtion is done.
}
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|