Skip to content

variant macro for blocks #26

Closed
Closed
@Lokathor

Description

@Lokathor

I often want to cfg some code, but I want to do it on blocks inside a function instead of at the item level.

Would you be open to adding a second macro such as cfg_if_block (or other name) that does all the same stuff but working on :block instead of :item? I can do the PR if you're interested in the idea.

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