diff options
author | isotes <isotes@gmail.com> | 2016-02-19 23:51:00 +0100 |
---|---|---|
committer | isotes <isotes@gmail.com> | 2016-02-19 23:51:00 +0100 |
commit | df3642b832dec73cf00e6a353ad134d3b132f4b1 (patch) | |
tree | 31d69527ab93a095d7b29b47ba14609db75cd61f /examples/network_server/common.h | |
parent | 4110ff293571767b4de0044d88da8f2e704d764e (diff) |
Generate MIN/MAX/ARRAYSIZE for enums
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.
Diffstat (limited to 'examples/network_server/common.h')
0 files changed, 0 insertions, 0 deletions