c2v
c2v copied to clipboard
error: struct embedding must be declared at the beginning of the struct body
translating Remotery.c ... Remotery.v:41:2: error: struct embedding must be declared at the beginning of the struct body
39 | messageQueueSizeInBytes RmtU32
40 | maxNbMessagesPerUpdate RmtU32
41 | C.malloc RmtMallocPtr
| ~~~~~~~~
42 | realloc RmtReallocPtr
43 | C.free RmtFreePtr
I'm not sure how fixable this one is, but the error message is pretty clear, so I was able to work past it.
C code origin -> https://github.com/Celtoys/Remotery