]> git.sesse.net Git - vlc/blobdiff - include/libvlc_internal.h
src/control: a bit of cleanup here and there
[vlc] / include / libvlc_internal.h
index e3f3c4520094c416bfc75eb05d81d404cc160f3c..6cbc8184ce83b5bead917ab0dadc0a3bb58c1bb4 100644 (file)
@@ -50,6 +50,9 @@ struct libvlc_input_t
     struct libvlc_instance_t *p_instance; ///< Parent instance
 };
 
+#define RAISENULL( psz ) { libvlc_exception_raise( p_e, psz ); return NULL; }
+#define RAISEVOID( psz ) { libvlc_exception_raise( p_e, psz ); return; }
+#define RAISEZERO( psz ) { libvlc_exception_raise( p_e, psz ); return 0; }
 
 # ifdef __cplusplus
 }