nir: Use static inlines instead of macros for list getters
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 19 Dec 2014 23:30:15 +0000 (15:30 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:23 +0000 (07:20 -0800)
commited13f4e716f24f9d3ed89fd171bd13e3be548e3c
tree697eb5a9c11eff480373300dbb92b79e95ba2f9e
parentb95fae034fad9471f179761790bd1f01f8bade5c
nir: Use static inlines instead of macros for list getters

This should make debugging a lot easier as GDB handles static inlines much
better than macros.  Also, static inlines are typesafe.

Reviewed-By: Glenn Kennard <glenn.kennard@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.h