[vlc-commits] msg_...: default value for MODULE_STRING
Rémi Denis-Courmont
git at videolan.org
Sun Sep 15 19:38:54 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Sep 15 17:07:47 2013 +0300| [2ff0bceaa726123620f714f0567cf901bf8cf113] | committer: Rémi Denis-Courmont
msg_...: default value for MODULE_STRING
This was often confusing external plugin authors.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ff0bceaa726123620f714f0567cf901bf8cf113
---
include/vlc_messages.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/vlc_messages.h b/include/vlc_messages.h
index 79aa519..6914883 100644
--- a/include/vlc_messages.h
+++ b/include/vlc_messages.h
@@ -77,6 +77,10 @@ VLC_API void vlc_vaLog(vlc_object_t *, int,
#define msg_Dbg( p_this, ... ) \
vlc_Log( VLC_OBJECT(p_this), VLC_MSG_DBG, MODULE_STRING, __VA_ARGS__ )
+#ifndef MODULE_STRING
+# define MODULE_STRING __FILE__
+#endif
+
/**
* @}
*/
More information about the vlc-commits
mailing list