Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.39 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.39 KB

SignalHandler

Ubuntu MacOS Windows

codecov Quality Gate Status Coverage Maintainability Rating

Simple multiplatform signal handler

Usage

#include <sh/SignalHandler.h>
#include "MyApp.h"

int main ()
{
    MyApp myApp;
    ...
    sh::SignalHandler handler({SIGINT}, &MyApp::onSignal);

    return myApp.run();
}