Zth (libzth)
Loading...
Searching...
No Matches
zth_postdeinit.cpp File Reference
#include <libzth/init.h>
#include <libzth/indirection.h>

Go to the source code of this file.

Functions

int zth_postdeinit ()
 Initialization function to be called by the default-supplied main(), just before shutting down.
 

Function Documentation

◆ zth_postdeinit()

int zth_postdeinit ( )

Initialization function to be called by the default-supplied main(), just before shutting down.

This function can be used to run machine/board-specific cleanup in main() before returning. The default (weak) implementation does nothing.

Returns
the exit code of the application, which overrides the returned value from main_fiber() when non-zero

Definition at line 24 of file zth_postdeinit.cpp.