andrey                                   Tue, 19 Jan 2010 12:13:06 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=293725

Log:
Make it GCC only feature (tracing). VC7 and up do the work
too and it might be tweaked later.

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_debug.h
    U   php/php-src/trunk/ext/mysqlnd/mysqlnd_debug.h

Modified: php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_debug.h
===================================================================
--- php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_debug.h    2010-01-19 
12:03:07 UTC (rev 293724)
+++ php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd_debug.h    2010-01-19 
12:13:06 UTC (rev 293725)
@@ -80,7 +80,7 @@

 PHPAPI char *  mysqlnd_get_backtrace(TSRMLS_D);

-#if !defined(PHP_WIN32)
+#if defined(__GNUC__)
 #define DBG_INF_EX(dbg_obj, msg)               do { if (dbg_skip_trace == 
FALSE) (dbg_obj)->m->log((dbg_obj), __LINE__, __FILE__, -1, "info : ", (msg)); 
} while (0)
 #define DBG_ERR_EX(dbg_obj, msg)               do { if (dbg_skip_trace == 
FALSE) (dbg_obj)->m->log((dbg_obj), __LINE__, __FILE__, -1, "error: ", (msg)); 
} while (0)
 #define DBG_INF_FMT_EX(dbg_obj, ...)   do { if (dbg_skip_trace == FALSE) 
(dbg_obj)->m->log_va((dbg_obj), __LINE__, __FILE__, -1, "info : ", 
__VA_ARGS__); } while (0)

Modified: php/php-src/trunk/ext/mysqlnd/mysqlnd_debug.h
===================================================================
--- php/php-src/trunk/ext/mysqlnd/mysqlnd_debug.h       2010-01-19 12:03:07 UTC 
(rev 293724)
+++ php/php-src/trunk/ext/mysqlnd/mysqlnd_debug.h       2010-01-19 12:13:06 UTC 
(rev 293725)
@@ -80,7 +80,7 @@

 PHPAPI char *  mysqlnd_get_backtrace(TSRMLS_D);

-#if !defined(PHP_WIN32)
+#if defined(__GNUC__)
 #define DBG_INF_EX(dbg_obj, msg)               do { if (dbg_skip_trace == 
FALSE) (dbg_obj)->m->log((dbg_obj), __LINE__, __FILE__, -1, "info : ", (msg)); 
} while (0)
 #define DBG_ERR_EX(dbg_obj, msg)               do { if (dbg_skip_trace == 
FALSE) (dbg_obj)->m->log((dbg_obj), __LINE__, __FILE__, -1, "error: ", (msg)); 
} while (0)
 #define DBG_INF_FMT_EX(dbg_obj, ...)   do { if (dbg_skip_trace == FALSE) 
(dbg_obj)->m->log_va((dbg_obj), __LINE__, __FILE__, -1, "info : ", 
__VA_ARGS__); } while (0)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to