是一个C ++ preprocessor等同于一个C preprocessor?

是一个C ++ preprocessor等同于一个C preprocessor?

问题描述:

我想知道如何不同 - 为C preprocessors ++和 C

I am wondering how different the preprocessors for C++ and C are.

究其原因,问题是,this在$ P $特定pprocessor,问题在哪里,解决问题的标准段有不同的写法(和不同的款号)问题,也有关于真正的差异用C虚假关键字++。

The reason for the question is this question on a preprocessor-specific question where the paragraph of the standard that addresses the question has a different wording (and a different paragraph number) and also are difference concerning the true and false keywords in C++.

那么,还有更多的差异或者这是唯一的区别。

So, are there more differences or is this the only difference.

当是一个C ++ preprocessor和 C preprocessor发出不同的源文件中的问题的扩展会。

An extension of the question would be when is a source file emitted differently by a C++ preprocessor and a C preprocessor.

C ++的03 preprocessor(至少意在)类似C99之前的C preprocessor。虽然措辞和号段略有不同,唯一的技术差异,我知道这两者之间是C ++的preprocessor处理有向图和通用字符的名称,这是不是在C present。

The C++03 preprocessor is (at least intended to be) similar to the C preprocessor before C99. Although the wording and paragraph numbers are slightly different, the only technical differences I'm aware of between the two are that the C++ preprocessor handles digraphs and universal character names, which are not present in C.

由于C99的中,C preprocessor补充说,不C的当前版本存在着一些新的功能(例如,复杂的宏)++。我不记得是肯定的,但并不认为加连字。

As of C99, the C preprocessor added some new capabilities (e.g., variadic macros) that do not exist in the current version of C++. I don't remember for sure, but don't believe that digraphs were added.

我相信的C ++ 0x将再次带来线两(至少是这样的意图)。同样,段落编号和措辞也不会完全相同,但我相信其意图是,他们应该工作相同(除保留上述差异)。

I believe C++0x will bring the two in line again (at least that's the intent). Again, the paragraph numbers and wording won't be identical, but I believe the intent is that they should work the same (other than retaining the differences mentioned above).