PMunch / futhark

Automatic wrapping of C headers in Nim
MIT License
355 stars 19 forks source link

Float parsing in macros #75

Closed daniel-j closed 1 year ago

daniel-j commented 1 year ago

The parsing relies on Nim's parseFloat pretty much. If the def contains a period, and then trim off the suffix if any.

Ran inte the issue of missing constants when parsing https://github.com/boschsensortec/Bosch-BSEC2-Library/blob/a8fe04a870a459223b3bc3f48cfe2200b9fcc234/src/inc/bsec_datatypes.h#L91