Some compilers where unable to detect that the ternary operator can be evaluated at the compile time. This commit does the evaluation on the Python side, which should fix the problem. The new .pb.c files are generated using PB_FIELD2() macro. The old PB_FIELD() macro remains, so that previously generated files keep working.
Nanopb is a small code-size Protocol Buffers implementation. Homepage: http://kapsi.fi/~jpa/nanopb/ To compile the library, you'll need these libraries: protobuf-compiler python-protobuf libprotobuf-dev The only runtime dependencies are memset() and memcpy(). To run the tests, run make under the tests folder. If it completes without error, everything is fine.
Description
Languages
C
71.7%
Python
23.1%
CMake
2.5%
Shell
1.8%
PureBasic
0.4%
Other
0.5%