zoukankan      html  css  js  c++  java
  • C/C++宏定义中#与##区别 .

    // #表示:对应变量字符串化
    // ##表示:把宏参数名与宏定义代码序列中的标识符连接在一起,形成一个新的标识符

    #define U_BOOT_CMD_MKENT_COMPLETE(name,maxargs,rep,cmd,usage,help,comp)
     {#name, maxargs, rep, cmd, usage, _CMD_HELP(help) _CMD_COMPLETE(comp)}

    #define U_BOOT_CMD_COMPLETE(name,maxargs,rep,cmd,usage,help,comp)
     cmd_tbl_t __u_boot_cmd_##name Struct_Section =
      U_BOOT_CMD_MKENT_COMPLETE(name,maxargs,rep,cmd,usage,help,comp)

  • 相关阅读:
    10月20日动手动脑
    10月20日
    10月19日
    10月18日
    10月17日
    10月16日
    10月15日
    10月14日
    jQuery选择器大全
    面试总结
  • 原文地址:https://www.cnblogs.com/hei-da-mi/p/5659566.html
Copyright © 2011-2022 走看看