encyclopegia.org

Prefix header

In computer programming, a prefix header is a feature found in some C or C++ compilers used to ensure that a certain snippet of code is inserted at the beginning of every file.

In computer programming, a prefix header is a feature found in some C or C++ compilers used to ensure that a certain snippet of code is inserted at the beginning of every file. ifdef __OBJC__ #import endif As a result, explicit includes of the above header files in any Objective-C code file do not imply a second inclusion because of the #import directive of Objective-C, or more generally with #include because of the use of include guards; hence, these includes can be forgotten, but it is advocated to have them explicitly written in order to keep the source code autonomous and reusable, and make the library dependencies clear. Similar prefix headers are generated for other types of project.

References

No reference rows published for this article.

Cite this article

MLA

"Prefix header." encyclopegia.org, 2025, https://encyclopegia.org/wiki/prefix-header. Accessed 24 November 2026.

Chicago

"Prefix header." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/prefix-header.

APA

encyclopegia.org. (2025). Prefix header. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/prefix-header

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

prefix grammar

stub · references available

numeral prefix

stub · references available

header-only library

stub · references available

Template:AfC project category header

stub · references available

Template:Chemical datatable header

stub · references available

Template:Vb cl2 header

stub · references available

Template:Decade category header

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1303207005 · 0.5 · snapshot enwiki-001303207005

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.