Use G_STRLOC instead __LINE__

This commit is contained in:
Javier Jardón 2009-10-21 23:25:56 +02:00
parent a667ee8e5e
commit c368c6e425

View File

@ -53,8 +53,8 @@
#define CQTESTF(quiet, expr, failfmt) \ #define CQTESTF(quiet, expr, failfmt) \
(tmpb = (expr), \ (tmpb = (expr), \
(tmpb ? (quiet ? 0 : printf ("PASS: %d %s\n", __LINE__, #expr)) \ (tmpb ? (quiet ? 0 : printf ("PASS: %s %s\n", G_STRLOC, #expr)) \
: (printf ("FAIL: %d %s", __LINE__, #expr), \ : (printf ("FAIL: %s %s", G_STRLOC, #expr), \
printf failfmt, \ printf failfmt, \
printf ("\n"), \ printf ("\n"), \
retval = FALSE, \ retval = FALSE, \