gallium/util: check callback pointers for non-null in pipe_debug_message()
authorBrian Paul <brianp@vmware.com>
Sat, 5 Dec 2015 00:44:29 +0000 (17:44 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 7 Dec 2015 15:56:51 +0000 (08:56 -0700)
commit5effc3ae744807d03c6779040d752c74ed4abfbf
tree8b6ab84952de8a919932ff485a1ac22013e66b96
parentb19546abf386268e06464624bd6638cf61e595b6
gallium/util: check callback pointers for non-null in pipe_debug_message()

So the callers don't have to do it.

v2: also check cb!=NULL in the macro

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_debug.h