File tree 4 files changed +12
-4
lines changed
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ _num_app:
36
36
for i in 0 ..apps. len ( ) {
37
37
writeln ! ( f, r#" .quad app_{}_start"# , i) ?;
38
38
}
39
- writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
39
+ if !apps. is_empty ( ) {
40
+ writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
41
+ }
40
42
41
43
for ( idx, app) in apps. iter ( ) . enumerate ( ) {
42
44
println ! ( "app_{}: {}" , idx, app) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ _num_app:
39
39
for i in 0 ..apps. len ( ) {
40
40
writeln ! ( f, r#" .quad app_{}_start"# , i) ?;
41
41
}
42
- writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
42
+ if !apps. is_empty ( ) {
43
+ writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
44
+ }
43
45
44
46
for ( idx, app) in apps. iter ( ) . enumerate ( ) {
45
47
println ! ( "app_{}: {}" , idx, app) ;
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ _num_app:
39
39
for i in 0 ..apps. len ( ) {
40
40
writeln ! ( f, r#" .quad app_{}_start"# , i) ?;
41
41
}
42
- writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
42
+ if !apps. is_empty ( ) {
43
+ writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
44
+ }
43
45
44
46
for ( idx, app) in apps. iter ( ) . enumerate ( ) {
45
47
println ! ( "app_{}: {}" , idx, app) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ _num_app:
40
40
for i in 0 ..apps. len ( ) {
41
41
writeln ! ( f, r#" .quad app_{}_start"# , i) ?;
42
42
}
43
- writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
43
+ if !apps. is_empty ( ) {
44
+ writeln ! ( f, r#" .quad app_{}_end"# , apps. len( ) - 1 ) ?;
45
+ }
44
46
45
47
writeln ! (
46
48
f,
You can’t perform that action at this time.
0 commit comments