p7zip-rar/CPP/7zip/UI/Console/ConsoleClose.h

27 lines
358 B
C
Raw Normal View History

2017-10-11 12:40:22 +02:00
// ConsoleCloseUtils.h
#ifndef __CONSOLECLOSEUTILS_H
#define __CONSOLECLOSEUTILS_H
namespace NConsoleClose {
bool TestBreakSignal();
class CCtrlHandlerSetter
{
void (*memo_sig_int)(int);
void (*memo_sig_term)(int);
public:
CCtrlHandlerSetter();
virtual ~CCtrlHandlerSetter();
};
class CCtrlBreakException
{};
void CheckCtrlBreak();
}
#endif