We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
myarr [1]C.mytype
pub type C.mytype = voidptr
1 parent dc76342 commit 9ed3371Copy full SHA for 9ed3371
vlib/v/gen/c/cgen.v
@@ -6570,9 +6570,6 @@ fn (mut g Gen) write_types(symbols []&ast.TypeSymbol) {
6570
}
6571
len := sym.info.size
6572
if len > 0 {
6573
- if fixed_elem_name.starts_with('C__') {
6574
- fixed_elem_name = fixed_elem_name[3..]
6575
- }
6576
if elem_sym.info is ast.FnType {
6577
pos := g.out.len
6578
g.write_fn_ptr_decl(&elem_sym.info, '')
vlib/v/tests/array_fixed_c_test.v
@@ -0,0 +1,9 @@
1
+type C.ArrFixedCTestType = voidptr
2
+
3
+struct WrapperStruct {
4
+mut:
5
+ arr_fixed_c_type [1]C.ArrFixedCTestType
6
+}
7
8
+fn test_main() {
9
0 commit comments