hw/registerfields: Prefix local variables with underscore in macros
commit5932a46c8a419db4a6402ac8ae42953b4d4fef1e
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 10 May 2020 20:34:57 +0000 (10 22:34 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 27 May 2020 18:23:07 +0000 (27 11:23 -0700)
tree7553bd6e4231119a67e9564fe193ae2e50ed1a36
parent06539ebc76b8625587aa78d646a9d8d5fddf84f3
hw/registerfields: Prefix local variables with underscore in macros

One can name a local variable holding a value as 'v', but it
currently clashes with the registerfields macros. To save others
to debug the same mistake, prefix the macro's local variables
with an underscore.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20200510203457.10546-1-f4bug@amsat.org
Message-Id: <20200510203457.10546-1-f4bug@amsat.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
include/hw/registerfields.h