Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
dc594262
Commit
dc594262
authored
Aug 19, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Print more info on error.
parent
57ba4d98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test/libvlc/test.h
test/libvlc/test.h
+4
-2
No files found.
test/libvlc/test.h
View file @
dc594262
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment