-/* test if we have exception */
-static inline bool have_exception (void)
-{
- if (libvlc_exception_raised (&ex))
- {
- libvlc_exception_clear (&ex);
- return true;
- }
- else
- return false;
-}
-
-static inline void catch (void)
-{
- if (libvlc_exception_raised (&ex))
- {
- fprintf (stderr, "Exception: %s\n",
- libvlc_exception_get_message (&ex));
- abort ();
- }
-
- assert (libvlc_exception_get_message (&ex) == NULL);
- libvlc_exception_clear (&ex);
-}
-