this_fixmap_does_not_exist

      1 #include <stdio.h>                                                                                         
      2
      3 static __always_inline unsigned int  show(const unsigned int a)
      4 {
      5     if (a>3)
      6         this_fixmap_does_not_exist();
      7     return a;
      8 }
      9
     10
     11 int main(int argc, char *argv[])
     12 {
     13     unsigned int a=show(0);
     14     printf("%d\n",a);
     15     return 0;
     16 }

最主要就是编译防错。宏不能上边的功能。

static inline unsigned int 也可以,但是编译选项一定要加入优化选项。

原文地址:https://www.cnblogs.com/openix/p/2775246.html