]> git.sesse.net Git - vlc/blobdiff - src/control/libvlc_internal.h
LibVLC core: remove exceptions
[vlc] / src / control / libvlc_internal.h
index 3cb97d6ef1adb54af778dc6cc2e6000559b170e9..522620a7bb6ad1c64c9acf76539547238d37a16f 100644 (file)
@@ -99,15 +99,6 @@ void libvlc_event_attach_async( libvlc_event_manager_t * p_event_manager,
                                libvlc_callback_t pf_callback,
                                void *p_user_data );
 
-/* Exception shorcuts */
-
-#define RAISENULL( ... ) { libvlc_printerr(__VA_ARGS__); \
-                           libvlc_exception_raise( p_e ); \
-                           return NULL; }
-#define RAISEZERO( ... ) { libvlc_printerr(__VA_ARGS__); \
-                           libvlc_exception_raise( p_e ); \
-                           return 0; }
-
 static inline libvlc_time_t from_mtime(mtime_t time)
 {
     return (time + 500ULL)/ 1000ULL;