We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 879d524 commit 432a623Copy full SHA for 432a623
include/cpp_common/interruption.hpp
@@ -80,15 +80,16 @@ extern "C" {
80
#endif
81
82
/* 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)
88
89
90
}
91
+static inline void CHECK_FOR_INTERRUPTS() {
+ if (INTERRUPTS_PENDING_CONDITION()) {
+ ProcessInterrupts();
+ }
+}
92
+
93
#include "cpp_common/undefPostgresDefine.hpp"
94
95
#endif // INCLUDE_CPP_COMMON_INTERRUPTION_HPP_
0 commit comments