]> 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 592b6f26e7cbee46f155594d87911a9e1873f808..bbbc2a2a349824c7a176fbb6011dff8ad2c52f6f 100644 (file)
@@ -136,9 +136,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 /* defined(__GNUC__) || (defined(_MSC_VER) && (_MSC_VER >= 1400)) */