Skip to content

fpp-to-cpp: Autogen serialization hooks for empty structs #939

@brianrwillis

Description

@brianrwillis

Per the fpp documentation, empty structs are syntactically allowed. However, fpp-to-cpp creates neither operators nor serialization/deserialization functions for structs with no members. This is an issue for my team, as we have a number of commands from our GDS that have no parameters (e.g., NOOPs).
Our workaround is to create a padding byte with a default value, but this wastes bandwidth and clutters both our code and user-facing command GUI.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    CCB

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions