]> granicus.if.org Git - php/commitdiff
add the BLOCK_LEAVE macro for non-gcc and non-win
authorAndrey Hristov <andrey@php.net>
Wed, 4 May 2011 19:09:12 +0000 (19:09 +0000)
committerAndrey Hristov <andrey@php.net>
Wed, 4 May 2011 19:09:12 +0000 (19:09 +0000)
ext/mysqlnd/mysqlnd_debug.h

index 98558b0eacc566e83d96fbcf3ad7e3cf733dd905..07988e3f9b1d94e90827c4ff49e7853cd2ec38dc 100644 (file)
@@ -147,9 +147,10 @@ static inline void DBG_ERR_EX(MYSQLND_DEBUG * dbg_obj, const char * const msg) {
 static inline void DBG_INF_FMT_EX(MYSQLND_DEBUG * dbg_obj, ...) {}
 static inline void DBG_ERR_FMT_EX(MYSQLND_DEBUG * dbg_obj, ...) {}
 static inline void DBG_ENTER_EX(MYSQLND_DEBUG * dbg_obj, const char * const func_name) {}
-#define DBG_RETURN_EX(dbg_obj, value) return (value)
-#define DBG_VOID_RETURN_EX(dbg_obj) return
-#define DBG_BLOCK_LEAVE_EX(dbg_obj) ;
+#define DBG_BLOCK_ENTER(bname)                 {
+#define DBG_RETURN_EX(dbg_obj, value)  return (value)
+#define DBG_VOID_RETURN_EX(dbg_obj)            return
+#define DBG_BLOCK_LEAVE_EX(dbg_obj)            }
 
 #endif