Skip to content

[FEATURE] Add the source file name and the line number for assert() #404

Description

@forchid

Is your feature request related to a problem? Please describe.
It is inconvenient for assert() if no the source file name and the line number.

var-const> zc def-test.zc
   Compiling def-test.zc
    Finished build in 0.18s
var-const> .\def-test
"Assertion failed: " {n} not expected, but {max_size}

Describe the solution you'd like
When assert() works, there are the source file name and the line number where it happened.

Describe alternatives you've considered
No.

Additional context
No.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions