NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
global_destructor_chain.c File Reference

Go to the source code of this file.

Functions

void * __register_global_object (void *pObj, dtorPtr pDtor, objectRef *pLastRef)
 Registers a global object for later destruction.
 
void __destroy_global_chain ()
 Destroys all constructed global objects.
 

Variables

objectRef__global_destructor_chain
 The global object chain.
 

Function Documentation

◆ __register_global_object()

void * __register_global_object ( void * pObj,
dtorPtr pDtor,
objectRef * pLastRef )

Registers a global object for later destruction.

Parameters
pObjA pointer to the object.
pDtorA pointer to the object's default destructor.
pLastRefA pointer to the previous objectRef.
Returns
A pointer to the object (pass through).

Definition at line 16 of file global_destructor_chain.c.

◆ __destroy_global_chain()

void __destroy_global_chain ( )

Destroys all constructed global objects.

[Since the game's main loop never exits, this is unused].

Definition at line 27 of file global_destructor_chain.c.

Variable Documentation

◆ __global_destructor_chain

objectRef* __global_destructor_chain

The global object chain.

Definition at line 6 of file global_destructor_chain.c.