treeform / genny

Generate a shared library and bindings for many languages.
MIT License
224 stars 9 forks source link

Use opaque pointer in C #51

Open noiryuh opened 2 years ago

noiryuh commented 2 years ago

Example code

// typedef struct Image* Image;
// ^ This works fine, but my auto-completion complaining for some reason.
// So i have to prepend with '_'

typedef struct _Image* Image;

there won't be a lot of changes like Zig opaque pointer Opaque type behaves as same as pointer in Nim