gotranspile / cxgo

Tool for transpiling C to Go.
https://gotranspile.dev
MIT License
337 stars 22 forks source link

Support typed nil values #31

Open dennwc opened 3 years ago

dennwc commented 3 years ago

Currently cxgo fails on Nuklear due to the fact that we erase types for nil values:

typedef int ptrdiff_t;
#define NK_ALIGNOF(t) ((char*)(&((struct {char c; t _h;}*)0)->_h) - (char*)0)
int a = NK_ALIGNOF(int);