generator: More exhaustive field size checking
authorKyle Manna <kyle@kylemanna.com>
Sat, 19 Sep 2015 21:36:55 +0000 (14:36 -0700)
committerKyle Manna <kyle@kylemanna.com>
Mon, 21 Sep 2015 01:49:21 +0000 (18:49 -0700)
commit56134e87657714b50d9837f846410fc30fa9fe7b
tree89ab79823225600254b6a00eed0092a6c3b499df
parent2731fe3e6a4ba6fd858947e343160c95c96042e2
generator: More exhaustive field size checking

Create a FieldMaxSize class that:
* Accumlates all C assertions
* Handles the checking of the longest simple field
* Also python3 doesn't support max(None)
generator/nanopb_generator.py