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

final vfmt run before CI check

This commit is contained in:
Alexander Medvednikov
2019-12-22 00:54:37 +03:00
parent 2b9392c46c
commit ef28a6b872
10 changed files with 92 additions and 86 deletions

View File

@@ -476,16 +476,16 @@ fn (v &V) interface_table() string {
}
}
methods += '\n},\n\n'
// Speaker_Cat_index = 0
concrete_type_name := gen_type.replace('*', '_ptr')
// Speaker_Cat_index = 0
concrete_type_name := gen_type.replace('*', '_ptr')
sb.writeln('int _${interface_name}_${concrete_type_name}_index = $i;')
}
if t.gen_types.len > 0 {
// methods = '{TCCSKIP(0)}'
// }
sb.writeln('void* (* ${interface_name}_name_table[][$t.methods.len]) = ' + '{ \n $methods \n }; ')
}else{
}
else {
// The line below is needed so that C compilation succeeds,
// even if no interface methods are called.
// See https://github.com/zenith391/vgtk3/issues/7