This version can store state after receiving SIGINT. This is achieved by polling FIFO read state;
6 lines
199 B
C++
6 lines
199 B
C++
#pragma once
|
|
#include <unistd.h>
|
|
#include <string>
|
|
|
|
#define ERR() if (errno != 0) perror((string{ "(" } + __FILE__ + ":" + to_string(__LINE__) + ")" + " " + __PRETTY_FUNCTION__).c_str()), errno = 0
|