wgtdkp / wgtcc

A small C11 compiler
MIT License
765 stars 130 forks source link

'defined' not supported #28

Closed huangguiyang closed 7 years ago

huangguiyang commented 7 years ago

A simple example:

# if defined(FOO)
#warning "xxx"
#else
#warning "yyy"
#endif

Another example:

#define X defined(FOO)

# if X
#warning "xxx"
#else
#warning "yyy"
#endif
wgtdkp commented 7 years ago

Not support defined, but not support #warning. The second example still gets some bug, i will fix it then :)