[libvirt] [PATCH 2/2] maint: enforce use of _LAST marker

2012-01-20 Thread Eric Blake
When converting a linear enum to a string, we have checks in place in the VIR_ENUM_IMPL macro to ensure that there is one string for every value, which lets us quickly flag if a user added a value but forgot to add a counterpart string. However, this only works if we use the _LAST marker. *

Re: [libvirt] [PATCH 2/2] maint: enforce use of _LAST marker

2012-01-20 Thread Jiri Denemark
On Fri, Jan 20, 2012 at 14:06:27 -0700, Eric Blake wrote: When converting a linear enum to a string, we have checks in place in the VIR_ENUM_IMPL macro to ensure that there is one string for every value, which lets us quickly flag if a user added a value but forgot to add a counterpart string.