Hacker News new | past | comments | ask | show | jobs | submit login

The clang nullability annotations can be used in C/C++ as extensions: https://clang.llvm.org/docs/AttributeReference.html#nullabil... You could then conditionally define your NOTNULL using them or not. The compiler will then complain about incorrect usage.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: