list: add some iterator debug
authorRob Clark <robdclark@chromium.org>
Sat, 25 May 2019 17:50:41 +0000 (10:50 -0700)
committerRob Clark <robdclark@gmail.com>
Thu, 30 May 2019 22:11:26 +0000 (22:11 +0000)
commit372e83b95f9277fe1d09b1c65c70a38918843b6f
tree7a2fdac4e55a2d6d3dda81e73f2efff96387aa97
parent03ce12c5ed7d1225d5aad8c10fccab2503920ec0
list: add some iterator debug

Debugging use of unsafe iterators when you should have used the _safe
version sucks.  Add some DEBUG build support to catch and assert if
someone does that.

I didn't update the UPPERCASE verions of the iterators.  They should
probably be deprecated/removed.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/util/list.h