1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v2: more informative assert output; string interpolation formatting

This commit is contained in:
Delyan Angelov
2020-03-26 20:17:14 +02:00
committed by GitHub
parent 6892a3e0a8
commit f489c89987
8 changed files with 263 additions and 181 deletions

View File

@@ -99,7 +99,7 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
//////csymbols := backtrace_symbols(*voidptr(&buffer[skipframes]), nr_actual_frames)
csymbols := backtrace_symbols(&buffer[skipframes], nr_actual_frames)
for i in 0 .. nr_actual_frames {
sframes << tos2(csymbols[i])
sframes << tos2( byteptr( voidptr(csymbols[i]) ) )
}
for sframe in sframes {
executable := sframe.all_before('(')