Classes | Functions

ap_CocoaApp.h File Reference

#include "ut_types.h"
#include "ap_App.h"
#include "ut_bytebuf.h"
#include "xap_CocoaApp.h"
#include "pt_Types.h"

Go to the source code of this file.

Classes

class  AP_CocoaApp

Functions

void signalWrapper (int) ABI_NORETURN

Function Documentation

void signalWrapper ( int  sig_num  ) 

This is a global function to call our signal handler. It needs to be global so that we can pass a function pointer to it to C code that handles signals.

Todo:
Could this be a static member function? JCA: No, but it can be extern "C" { static void signalWrapper(int) } JCA: (well, there is a way to use a static member function and to remain JCA: correct, but it's a bit cumbersome.)

This is a global function to call our signal handler. It needs to be global so that we can pass a function pointer to it to C code that handles signals.

Todo:
Could this be a static member function? JCA: No, but it can be extern "C" { static void signalWrapper(int) } JCA: (well, there is a way to use a static member function and to remain JCA: correct, but it's a bit cumbersome.)