Skip to content

additional language support functions: BS_LINENUM(), BS_FILE(), BS_FUNCTION() #13

@georgejecook

Description

@georgejecook

wouldn't it be great if we could drop these into the code at any time, like macros, so that they could be resolved at compile time. These are super handy for debugging, and currently require the use of third party tools.

Suggestion

print "unknown error occurred " ; BS_FILE() ; "." BS_FUNCTION() ; BS_LINENUM()

Would compile to
print "unknown error occurred pkg:/path/ToFile.brs.LoadStuff(23)"

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