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

fix interfaces on msvc

This commit is contained in:
Alexander Medvednikov 2019-11-08 23:28:32 +03:00
parent cac719c078
commit 32fec2c26c

View File

@ -410,6 +410,9 @@ fn (v &V) interface_table() string {
// Speaker_Cat_index = 0
sb.writeln('int _${t.name}_${gen_type}_index = $i;')
}
if t.methods.len == 0 {
methods = '{TCCSKIP(0)}'
}
sb.writeln('void* (* ${t.name}_name_table[][$t.methods.len]) = ' +
'{ $methods }; ')
continue