util: Make assert a no-op on non-debug builds.
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 4 Oct 2009 20:59:24 +0000 (21:59 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 4 Oct 2009 21:03:16 +0000 (22:03 +0100)
commit7a2271c65963c86ec1e5d9523b2eecf9ee59fe9d
tree042e11fc827b760c1faeb13421bc3081d11852bd
parent77ef7050587bba43c219e9d22170237898b2bb23
util: Make assert a no-op on non-debug builds.

This ensures that an assertion like

  assert(expensive_test());

won't have any penalty on release builds. It also implies that no vital
code should be in assert expressions.
src/gallium/auxiliary/util/u_debug.h