Logo
Unionpedia
Communication
Get it on Google Play
New! Download Unionpedia on your Android™ device!
Free
Faster access than browser!
 

Include guard

Index Include guard

In the C and C++ programming languages, an #include guard, sometimes called a macro guard or header guard, is a particular construct used to avoid the problem of double inclusion when dealing with the include directive. [1]

11 relations: C (programming language), C preprocessor, C++, Circular dependency, Idempotence, Include directive, Naming convention (programming), Objective-C, One Definition Rule, Pragma once, Universally unique identifier.

C (programming language)

C (as in the letter ''c'') is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations.

New!!: Include guard and C (programming language) · See more »

C preprocessor

The C preprocessor or cpp is the macro preprocessor for the C and C++ computer programming languages.

New!!: Include guard and C preprocessor · See more »

C++

C++ ("see plus plus") is a general-purpose programming language.

New!!: Include guard and C++ · See more »

Circular dependency

In software engineering, a circular dependency is a relation between two or more modules which either directly or indirectly depend on each other to function properly.

New!!: Include guard and Circular dependency · See more »

Idempotence

Idempotence is the property of certain operations in mathematics and computer science that they can be applied multiple times without changing the result beyond the initial application.

New!!: Include guard and Idempotence · See more »

Include directive

Many programming languages and other computer files have a directive, often called include (as well as copy and import), that causes the contents of a second file to be inserted into the original file.

New!!: Include guard and Include directive · See more »

Naming convention (programming)

In computer programming, a naming convention is a set of rules for choosing the character sequence to be used for identifiers which denote variables, types, functions, and other entities in source code and documentation.

New!!: Include guard and Naming convention (programming) · See more »

Objective-C

Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.

New!!: Include guard and Objective-C · See more »

One Definition Rule

The One Definition Rule (ODR) is an important concept in the C++ programming language.

New!!: Include guard and One Definition Rule · See more »

Pragma once

In the C and C++ programming languages, #pragma once is a non-standard but widely supported preprocessor directive designed to cause the current source file to be included only once in a single compilation.

New!!: Include guard and Pragma once · See more »

Universally unique identifier

A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems.

New!!: Include guard and Universally unique identifier · See more »

Redirects here:

Header guard, Macro guard.

References

[1] https://en.wikipedia.org/wiki/Include_guard

OutgoingIncoming
Hey! We are on Facebook now! »