Generate MIN/MAX/ARRAYSIZE for enums
authorisotes <isotes@gmail.com>
Fri, 19 Feb 2016 22:51:00 +0000 (23:51 +0100)
committerisotes <isotes@gmail.com>
Fri, 19 Feb 2016 22:51:00 +0000 (23:51 +0100)
This generates #defines mirroring the following values from the generated C++ code of GPB
* const Foo Foo_MIN: the smallest valid value of the enum (VALUE_A in the example).
* const Foo Foo_MAX: the largest valid value of the enum (VALUE_C in the example).
* const Foo Foo_ARRAYSIZE: always defined as Foo_MAX + 1.


No differences found