From db908e507fb751fae3379ad403f0ea94e8098fab Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 15 Apr 2021 20:38:34 +0300 Subject: [PATCH] v: add more precise source line info for `-g -assert aborts` --- vlib/v/gen/c/assert.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/gen/c/assert.v b/vlib/v/gen/c/assert.v index 2e1a12f921..5c8ea5adb9 100644 --- a/vlib/v/gen/c/assert.v +++ b/vlib/v/gen/c/assert.v @@ -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 {