libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
Functions
except.h File Reference
#include "core.h"
Include dependency graph for except.h:

Go to the source code of this file.

Functions

void except_init (void)
 
void except_fini (void)
 

Detailed Description

This file contains an exception/crash catching machinery. Please note that this system may override any other crash handlers and on Linux & MacOS, there can usually only be a single crash handler. So you should definitely NOT use this if you're not the loaded aircraft addon, or you're not using this for development & testing.

Once the custom crash handlers are installed, if a crash or unexpected exception occurs, our custom crash handler catches that condition and attempts to print a suitable error message. The crash handler performs a stack backtrace and attempts to analyze the symbols of the crashed binary to provide as much debug information as possible.

See also
except_init()
except_fini()

Definition in file except.h.

Function Documentation

◆ except_fini()

void except_fini ( void  )

Uninstalls a custom crash handler and deinitializes the system. This should be called near the bottom of your XPluginStop.

Definition at line 322 of file except.c.

◆ except_init()

void except_init ( void  )

Installs a custom crash handler and initializes the system. This should be called near the top of your XPluginStart.

Definition at line 304 of file except.c.