/*********************************************************************
* Some useful global var
*/
-static libvlc_exception_t ex;
static const char * test_defaults_args[] = {
"-v",
#define log( ... ) printf( "testapi: " __VA_ARGS__ );
-/* 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);
-}
-
static inline void test_init (void)
{
(void)test_default_sample; /* This one may not be used */