mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v: add more precise source line info for -g -assert aborts
This commit is contained in:
parent
1d2ef79545
commit
db908e507f
@ -53,6 +53,7 @@ fn (mut g Gen) gen_assert_stmt(original_assert_statement ast.AssertStmt) {
|
||||
}
|
||||
|
||||
fn (mut g Gen) gen_assert_postfailure_mode(node ast.AssertStmt) {
|
||||
g.write_v_source_line_info(node.pos)
|
||||
match g.pref.assert_failure_mode {
|
||||
.default {}
|
||||
.aborts {
|
||||
|
Loading…
Reference in New Issue
Block a user