Directive (programming): Difference between revisions

Content deleted Content added
Mukadderat (talk | contribs)
{{citations missing
#region has no effect on the code and is therefore a trivial example. #if is a better example.
Line 13:
One notable C preprocessor directive is <code>[[pragma once|#pragma once]]</code>, which instructs the compiler to include the current source file only once, making it effectively [[idempotent]], and providing an alternative in C and C++ to [[include guard|#include guards]].
-->
Syntactic constructs similar to C's preprocessor directives, such as [[C Sharp (programming language)|C#]]'s <code>#regionif</code>, are also typically called "directives", although in these cases there may not be any real preprocessing phase involved.
 
==In other high-level languages==