Skip to content

Only define @ and _NARG when they have values #1069

@Rangi42

Description

@Rangi42

Currently using @ outside a section will error "PC has no value outside a section" and evaluate to 0. Using _NARG outside a macro will error "_NARG does not make sense outside of a macro" and evaluate to 0.

These special errors could be avoided if the symbols were simply not defined when they don't have sensible values. That would also let a macro detect whether it's in a section by doing if DEF(@).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementTypically new features; lesser priority than bugsrgbasmThis affects RGBASM

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions