commit | a81a71c5910d09b805db60032e4797c0ac68383a | [log] [tgz] |
---|---|---|
author | Akihiko Odaki <akihiko.odaki@gmail.com> | Tue Feb 22 19:28:22 2022 +0900 |
committer | Marge Bot <emma+marge@anholt.net> | Mon Mar 07 15:53:57 2022 +0000 |
tree | c288a1ba625c34e74eecb33e8c1b1b60bdc3e265 | |
parent | 26372a6e2f2de92a6b755f4145318648b99f2465 [diff] |
debug: Introduce VREND_DEBUG_ENABLED flag VREND_DEBUG_ENABLED represents if debugging features are enabled and is controlled by NDEBUG macro. By using VREND_DEBUG_ENABLED in an if statement instead of using NDEBUG in ifdef, the compiler can validate the content of the conditional and know its variable usage to avoid meaningless warnings. Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com> Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/715>