C preprocessor: Difference between revisions

Content deleted Content added
Line 370:
</syntaxhighlight>
 
In [[Microsoft Visual C++]] (MSVC), there also exists an <code>#import</code> preprocessor directive, used to import type libraries.<ref>{{Cite web|title=#import directive (C++)|url=https://learn.microsoft.com/en-us/cpp/preprocessor/hash-import-directive-cpp|title publisher= #import directive (C++)learn.microsoft.com}}</ref> It is a nonstandard directive.
 
<syntaxhighlight lang="cpp">
Line 377:
 
The Objective-C directive should not be confused with the C++ keyword <code>import</code>, which is used to import C++ [[Modules (C++)|modules]] (since [[C++20]]), and is not a preprocessor directive.
 
=== Null directive ===
The <code>#</code> (null directive) which consists only of the <code>#</code> character, alone on a single line, is a non-standard directive in Microsoft Visual C++. It has no effect.<ref>{{Cite web|title=Null directive|url=https://learn.microsoft.com/en-us/cpp/preprocessor/null-directive|publisher=learn.microsoft.com}}</ref>
 
=== Nullable ===