9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
Log | Files | Refs | README | LICENSE

features.h (320B)


      1 #ifndef FEATURES_H_
      2 #define FEATURES_H_
      3 
      4 #define USED(x) ((void) x)
      5 #define NELEM(tab) (sizeof(tab) / sizeof((tab)[0]))
      6 
      7 #if __GNUC__ || __clang__
      8   #define noreturn __attribute__((__noreturn__))
      9 #else
     10   #if __STDC_VERSION__ >= 201112L
     11     #define noreturn _Noreturn
     12   #else
     13     #define noreturn
     14   #endif
     15 #endif
     16 
     17 #endif