Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

string to enum #22

Description

@fjhenigman

A "string to enum" function (inverse of waffle_enum_to_string) would help with writing command line parsing code. For example:
if (argv[1] starts with "WAFFLE_PLATFORM_")
platform = waffle_string_to_enum(argv[1])
else
print usage
This way when waffle grows new platforms, they can be used without having to update any code.
If there are no objections I can write this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions