3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-19 12:23:38 +00:00

add support to build with MSVC /Gr (fastcall mode for x86)

not enabled by default nor exposed at the moment
This commit is contained in:
Nuno Lopes 2016-03-24 15:39:18 +00:00
parent 89fad8913f
commit 83e34638e6
8 changed files with 15 additions and 8 deletions

View file

@ -20,16 +20,17 @@ Revision History:
#define SCOPED_CTRL_C_H_
#include"event_handler.h"
#include"util.h"
struct scoped_ctrl_c {
event_handler & m_cancel_eh;
bool m_first;
bool m_once;
bool m_enabled;
void (*m_old_handler)(int);
void (STD_CALL *m_old_handler)(int);
scoped_ctrl_c * m_old_scoped_ctrl_c;
static scoped_ctrl_c * g_obj;
static void on_ctrl_c(int);
static void STD_CALL on_ctrl_c(int);
public:
// If once == true, then the cancel_eh is invoked only at the first Ctrl-C.
// The next time, the old signal handler will take over.