Pyrogenesis  trunk
Typedefs | Functions
winit.cpp File Reference
#include "precompiled.h"
#include "lib/sysdep/os/win/winit.h"
#include "lib/sysdep/os/win/win.h"
Include dependency graph for winit.cpp:

Typedefs

typedef Status(* PfnLibError) ()
 

Functions

 __declspec (allocate(".WINIT$I$")) PfnLibError initBegin=0
 
 __declspec (allocate(".WINIT$IZ")) PfnLibError initEnd=0
 
 __declspec (allocate(".WINIT$S$")) PfnLibError shutdownBegin=0
 
 __declspec (allocate(".WINIT$SZ")) PfnLibError shutdownEnd=0
 
static void CallFunctionPointers (PfnLibError *begin, PfnLibError *end)
 call into a range of function pointers. More...
 
void winit_CallInitFunctions ()
 call each registered function. More...
 
void winit_CallShutdownFunctions ()
 

Typedef Documentation

typedef Status(* PfnLibError) ()

Function Documentation

__declspec ( allocate(".WINIT$I$")  )
pure virtual
__declspec ( allocate(".WINIT$IZ")  )
pure virtual
__declspec ( allocate(".WINIT$S$")  )
pure virtual
__declspec ( allocate(".WINIT$SZ")  )
pure virtual
static void CallFunctionPointers ( PfnLibError begin,
PfnLibError end 
)
static

call into a range of function pointers.

Parameters
[begin,end)STL-style range

note: pointers = 0 are ignored. this is because the above placeholders are initialized to 0 and because the range may be larger than expected due to COFF section padding (with zeroes).

void winit_CallInitFunctions ( )

call each registered function.

if this is called before CRT initialization, callbacks must not use any non-stateless CRT functions such as atexit. see wstartup.h for the current status on this issue.

void winit_CallShutdownFunctions ( )