c2nim icon indicating copy to clipboard operation
c2nim copied to clipboard

typedef type_t type_t conversion

Open KostblLb opened this issue 9 years ago • 1 comments

typedef struct type_t type_t is either ignored completely,. i'd like to see something like type type_t* = object

KostblLb avatar Mar 16 '17 04:03 KostblLb

I have same issue trying to parse

typedef struct rAudioBuffer rAudioBuffer;

which I fix to

typedef struct rAudioBuffer {} rAudioBuffer;

which translates with nep1 and header to

type
  RAudioBuffer* {.importc: "rAudioBuffer", header: raylibHeader, bycopy.} = object

greenfork avatar May 24 '21 14:05 greenfork