|
From: | Markus Armbruster |
Subject: | Re: [Qemu-devel] [PATCH] ui: use enum to string helpers |
Date: | Wed, 01 Aug 2018 15:08:38 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Marc-André Lureau <address@hidden> writes: > Minor code simplification. It's also a bit more robust: FOO_str(VAL) checks VAL is in range, FOO_lookup.array[VAL] doesn't. > > Signed-off-by: Marc-André Lureau <address@hidden> Reviewed-by: Markus Armbruster <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |