Files
U2FDevice/Macro.hpp
Michael Kuc 48840ad36c Added resumable loading, along with signal handling.
This version can store state after receiving SIGINT.
This is achieved by polling FIFO read state;
2018-08-09 20:23:23 +00:00

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