【问题标题】:VC++ preprocessor parameters-count limitVC++ 预处理器参数-计数限制
【发布时间】:2017-01-15 02:46:44
【问题描述】:

什么是 VC++ 预处理器参数计数限制?我正在使用 VS2013

我只找到了 doc。对于 Linux:https://gcc.gnu.org/onlinedocs/cpp/Implementation-limits.html

【问题讨论】:

  • 搜索vc++ compiler limits给了我this link as its first hit。任何未提及的限制都可以在the standard 中找到。
  • @JoachimPileborg - 我搜索的是预处理器限制,而不是编译限制。我猜微软即使在文档方面也不好......关于标准 - 微软多次忽略它;不能指望它
  • 请转到链接,信息就在该页面上。另外注意编译器和预处理器很久没有分开了,预处理和编译只是different phases of the same process
  • 我在 Martin Bonner 的回答中看到了。 Tnx

标签: c++ visual-c++ visual-studio-2013 c-preprocessor


【解决方案1】:

https://msdn.microsoft.com/en-us/library/ft39hh4x.aspx表示一个宏定义的最大参数个数为127个。

【讨论】:

    猜你喜欢
    • 2011-06-09
    • 2014-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-08
    • 2015-09-13
    相关资源
    最近更新 更多