mirror of
https://github.com/nanopb/nanopb.git
synced 2026-06-06 20:18:31 +00:00
Optionally generates a `myenum_valid()` function to check if a value belongs in enum.
8 lines
147 B
Python
8 lines
147 B
Python
# Test enum to string functionality
|
|
|
|
Import('env')
|
|
env.NanopbProto("enum.proto")
|
|
p = env.Program(["enum_validate.c", "enum.pb.c"])
|
|
env.RunTest(p)
|
|
|