Skip to content

Commit 432a623

Browse files
committed
fixed interruption.hpp
1 parent 879d524 commit 432a623

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

include/cpp_common/interruption.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,16 @@ extern "C" {
8080
#endif
8181

8282
/* Service interrupt, if one is pending and it's safe to service it now */
83-
#define CHECK_FOR_INTERRUPTS() \
84-
do { \
85-
if (INTERRUPTS_PENDING_CONDITION()) \
86-
ProcessInterrupts(); \
87-
} while (0)
8883
#endif
8984

9085
}
9186

87+
static inline void CHECK_FOR_INTERRUPTS() {
88+
if (INTERRUPTS_PENDING_CONDITION()) {
89+
ProcessInterrupts();
90+
}
91+
}
92+
9293
#include "cpp_common/undefPostgresDefine.hpp"
9394

9495
#endif // INCLUDE_CPP_COMMON_INTERRUPTION_HPP_

0 commit comments

Comments
 (0)