]> git.sesse.net Git - vlc/blobdiff - src/control/libvlc_internal.h
Move LibVLC error messages to libvlc_printerr().
[vlc] / src / control / libvlc_internal.h
index ef97eff54f8f0a022941ea68f02b2d0a7af39674..7e784cd70909f882b71646a833db951c3e5543ae 100644 (file)
@@ -104,9 +104,11 @@ void libvlc_event_attach_async( libvlc_event_manager_t * p_event_manager,
 
 /* Exception shorcuts */
 
-#define RAISENULL( ... ) { libvlc_exception_raise( p_e, __VA_ARGS__ ); \
+#define RAISENULL( ... ) { libvlc_printerr(__VA_ARGS__); \
+                           libvlc_exception_raise( p_e ); \
                            return NULL; }
-#define RAISEZERO( ... ) { libvlc_exception_raise( p_e, __VA_ARGS__ ); \
+#define RAISEZERO( ... ) { libvlc_printerr(__VA_ARGS__); \
+                           libvlc_exception_raise( p_e ); \
                            return 0; }
 
 #endif