Skip to content

Commit 91bddbe

Browse files
committed
add the BLOCK_LEAVE macro for non-gcc and non-win
1 parent 84a309f commit 91bddbe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ext/mysqlnd/mysqlnd_debug.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ static inline void DBG_ERR_EX(MYSQLND_DEBUG * dbg_obj, const char * const msg) {
147147
static inline void DBG_INF_FMT_EX(MYSQLND_DEBUG * dbg_obj, ...) {}
148148
static inline void DBG_ERR_FMT_EX(MYSQLND_DEBUG * dbg_obj, ...) {}
149149
static inline void DBG_ENTER_EX(MYSQLND_DEBUG * dbg_obj, const char * const func_name) {}
150-
#define DBG_RETURN_EX(dbg_obj, value) return (value)
151-
#define DBG_VOID_RETURN_EX(dbg_obj) return
152-
#define DBG_BLOCK_LEAVE_EX(dbg_obj) ;
150+
#define DBG_BLOCK_ENTER(bname) {
151+
#define DBG_RETURN_EX(dbg_obj, value) return (value)
152+
#define DBG_VOID_RETURN_EX(dbg_obj) return
153+
#define DBG_BLOCK_LEAVE_EX(dbg_obj) }
153154

154155
#endif
155156

0 commit comments

Comments
 (0)