Skip to content

Commit 9bf9b88

Browse files
committed
add the BLOCK_LEAVE macro for non-gcc and non-win
1 parent 3e46e95 commit 9bf9b88

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ext/mysqlnd/mysqlnd_debug.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ static inline void DBG_ERR_EX(MYSQLND_DEBUG * dbg_obj, const char * const msg) {
136136
static inline void DBG_INF_FMT_EX(MYSQLND_DEBUG * dbg_obj, ...) {}
137137
static inline void DBG_ERR_FMT_EX(MYSQLND_DEBUG * dbg_obj, ...) {}
138138
static inline void DBG_ENTER_EX(MYSQLND_DEBUG * dbg_obj, const char * const func_name) {}
139-
#define DBG_RETURN_EX(dbg_obj, value) return (value)
140-
#define DBG_VOID_RETURN_EX(dbg_obj) return
141-
#define DBG_BLOCK_LEAVE_EX(dbg_obj) ;
139+
#define DBG_BLOCK_ENTER(bname) {
140+
#define DBG_RETURN_EX(dbg_obj, value) return (value)
141+
#define DBG_VOID_RETURN_EX(dbg_obj) return
142+
#define DBG_BLOCK_LEAVE_EX(dbg_obj) }
142143

143144
#endif /* defined(__GNUC__) || (defined(_MSC_VER) && (_MSC_VER >= 1400)) */
144145

0 commit comments

Comments
 (0)