mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 10:07:02 -06:00
21.02
This commit is contained in:
@@ -5,28 +5,34 @@
|
||||
|
||||
namespace NConsoleClose {
|
||||
|
||||
class CCtrlBreakException {};
|
||||
|
||||
#ifdef UNDER_CE
|
||||
|
||||
inline bool TestBreakSignal() { return false; }
|
||||
struct CCtrlHandlerSetter {};
|
||||
|
||||
#else
|
||||
|
||||
extern unsigned g_BreakCounter;
|
||||
|
||||
inline bool TestBreakSignal()
|
||||
{
|
||||
#ifdef UNDER_CE
|
||||
return false;
|
||||
#else
|
||||
return (g_BreakCounter != 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
class CCtrlHandlerSetter
|
||||
{
|
||||
#ifndef _WIN32
|
||||
void (*memo_sig_int)(int);
|
||||
void (*memo_sig_term)(int);
|
||||
#endif
|
||||
public:
|
||||
CCtrlHandlerSetter();
|
||||
virtual ~CCtrlHandlerSetter();
|
||||
};
|
||||
|
||||
class CCtrlBreakException
|
||||
{};
|
||||
|
||||
// void CheckCtrlBreak();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user