vlang / c2v

C/C++ to V translator
GNU General Public License v3.0
223 stars 31 forks source link

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

Open topcheese opened 1 year ago

topcheese commented 1 year ago
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