Skip to content
P

Predef

Pre-defined Compiler Macros wiki

by cpredefFree

#2348in Utilities
0In stores

Description

Pre-defined C/C++ Compiler Macros is a wiki that lists the macros C and C++ compilers define automatically. Programmers use them to detect s…

Highlights

  • Macros grouped by standards, compilers, libraries, OS and architectures
  • Guidelines on version normalization and feature macros
  • Notes on endianness
  • Sources include vendor documentation and contributors
  • Corrections accepted via pull requests

Ratings & Reviews

No ratings yet

Be the first to rate Predef.

People also visit

C

Cdecl

Composing and deciphering C (or C++) declarations or casts, aka ‘‘gibberish.’’

Developer Tools
Launch
C

cppstat

C and C++ Compiler Support Page

Utilities
Launch
C

cpp-coding-standards

C++ coding standards based on the C++ Core Guidelines (isocpp.github.io)

AI Skills
Get
S

Standardese

A (work-in-progress) nextgen Doxygen for C++

Utilities
Launch
C

Codex Plusplus

Codex++ tweak system for the Codex desktop app

Utilities
Launch
O

Obfus.h

Macro-header for compile-time C polymorphic obfuscation (tcc, win x86/x64)

Education
Launch

Predef FAQ

What is this wiki?

A reference of the macros C and C++ compilers define automatically, used to identify compilers, operating systems and architectures.

Who is it for?

C and C++ developers writing portable code.

Where do the macros come from?

Vendor documentation, the defines script, contributors and third-party source code. The page says no guarantee of correctness is given.

Is it an alternative to Autoconf?

The page mentions Autoconf, Buildtool, CMake, SCons and others as alternatives for examining features and compile options.

How do I suggest a correction?

Send updates to predef-contribute or open a pull request on GitHub.

What are the best Predef alternatives?

Popular alternatives to Predef include cppstat, Standardese and Codex Plusplus. See all Predef alternatives

Developer Stuff

Badges