Commit dc594262 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

test: Print more info on error.

parent 57ba4d98
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment