• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // ConsoleClose.h
2 
3 #ifndef __CONSOLE_CLOSE_H
4 #define __CONSOLE_CLOSE_H
5 
6 namespace NConsoleClose {
7 
8 extern unsigned g_BreakCounter;
9 
TestBreakSignal()10 inline bool TestBreakSignal()
11 {
12   #ifdef UNDER_CE
13   return false;
14   #else
15   return (g_BreakCounter != 0);
16   #endif
17 }
18 
19 class CCtrlHandlerSetter
20 {
21 public:
22   CCtrlHandlerSetter();
23   virtual ~CCtrlHandlerSetter();
24 };
25 
26 class CCtrlBreakException
27 {};
28 
29 // void CheckCtrlBreak();
30 
31 }
32 
33 #endif
34