Commit d3b4d99e authored by Thomas Guillem's avatar Thomas Guillem

android/thread: don't use custom assert

The backtrace produced by the failing assert is enough.
parent 092e9449
......@@ -49,14 +49,6 @@
#endif
/* debug */
#define vlc_assert(x) do { \
if (unlikely(!(x))) { \
__android_log_print(ANDROID_LOG_ERROR, "vlc", "assert failed %s:%d: %s", \
__FILE__, __LINE__, #x \
); \
abort(); \
} \
} while(0)
#ifndef NDEBUG
static void
......@@ -129,7 +121,7 @@ void vlc_mutex_destroy (vlc_mutex_t *p_mutex)
#ifndef NDEBUG
void vlc_assert_locked (vlc_mutex_t *p_mutex)
{
vlc_assert (pthread_mutex_lock (p_mutex) == EDEADLK);
assert (pthread_mutex_lock (p_mutex) == EDEADLK);
}
#endif
......
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