git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57ba4d9
)
test: Print more info on error.
author
Pierre d'Herbemont
<pdherbemont@free.fr>
Wed, 19 Aug 2009 10:41:55 +0000
(12:41 +0200)
committer
Pierre d'Herbemont
<pdherbemont@free.fr>
Wed, 19 Aug 2009 14:26:09 +0000
(16:26 +0200)
test/libvlc/test.h
patch
|
blob
|
history
diff --git
a/test/libvlc/test.h
b/test/libvlc/test.h
index
7ac1f20
..
f706d3e
100644
(file)
--- a/
test/libvlc/test.h
+++ b/
test/libvlc/test.h
@@
-84,11
+84,13
@@
static inline bool have_exception (void)
return false;
}
-static inline void catch (void)
+#define catch() catch_with_info(__FILE__, __FUNCTION__, __LINE__)
+
+static inline void catch_with_info (const char * file, const char * func, unsigned line)
{
if (libvlc_exception_raised (&ex))
{
- fprintf (stderr, "
Exception: %s\n"
, libvlc_errmsg ());
+ fprintf (stderr, "
%s:%s():%d Exception: %s\n", file, func, line
, libvlc_errmsg ());
abort ();
}
libvlc_exception_clear (&ex);