c2v icon indicating copy to clipboard operation
c2v copied to clipboard

error: struct embedding must be declared at the beginning of the struct body

Open topcheese opened this issue 2 years ago • 0 comments

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

topcheese avatar Aug 15 '23 05:08 topcheese