This macro will generate the code that is needed to convert the object to/from JSON. You still need to call BT::RegisterJsonDefinition () in main() NOLINTNEXTLINE(misc-use-internal-linkage)
| 28 | // in main() |
| 29 | // NOLINTNEXTLINE(misc-use-internal-linkage) |
| 30 | BT_JSON_CONVERTER(Position2D, pos) |
| 31 | { |
| 32 | add_field("x", &pos.x); |
| 33 | add_field("y", &pos.y); |
| 34 | } |
| 35 | |
| 36 | struct Waypoint |
| 37 | { |
nothing calls this directly
no outgoing calls
no test coverage detected