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:
@@ -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
|
||||
|
Reference in New Issue
Block a user