Skip to content

Add a way for macros to check and report errors #3174

Closed
@eholk

Description

@eholk

It'd be helpful to have something like macro_error! or static_assert!, that evaluates a condition and possible reports an error at compile time.

In my HTML parser macro, it'd allow the macro to make sure closing tags actually close what they should.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsE-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions