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:
@@ -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) {
|
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 {
|
match g.pref.assert_failure_mode {
|
||||||
.default {}
|
.default {}
|
||||||
.aborts {
|
.aborts {
|
||||||
|
Reference in New Issue
Block a user