ReXGlue SDK
Loading...
Searching...
No Matches
rex::platform::ExceptionHandler Class Reference

#include <rex/platform/exception_handler.h>

Public Types

using Handler = bool (*)(Exception* ex, void* data)

Static Public Member Functions

static void Install (Handler fn, void *data)
static void Uninstall (Handler fn, void *data)

Detailed Description

Process wide chain of host exception handlers.

Member Typedef Documentation

◆ Handler

using rex::platform::ExceptionHandler::Handler = bool (*)(Exception* ex, void* data)

Exception callback. Returns true when the exception is handled, which resumes the thread with the modified context, or false to pass it to the next handler.

Member Function Documentation

◆ Install()

void rex::platform::ExceptionHandler::Install ( Handler fn,
void * data )
static

Adds a handler to the end of the chain.

◆ Uninstall()

void rex::platform::ExceptionHandler::Uninstall ( Handler fn,
void * data )
static

Removes a handler added with the same fn and data.

Parameters
dataThe value it was installed with.

The documentation for this class was generated from the following file: