Skip to content
r.

hedley

nemequ/hedley · Public GitHub repository

A C/C++ header to help move #ifdefs out of your code

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

hedley live demo screenshot
Captured from the live demo · 2026-10-31

About this project

Author-written excerpt from the project README.

Hedley is C/C++ a header file designed to smooth over some platform-specific annoyances. The idea is to get rid of a bunch of the #ifdefs in your code and put them in Hedley instead or, if you haven't bothered with platform-specific functionality in your code, to make it easier to do so. This code can be used to improve:

or too new for all the platforms they want to support.

You can safely use Hedley in your public API. If someone else includes a newer version of Hedley later on, the newer Hedley will just redefine everything, and if someone includes an older version it will simply be ignored.

Requirements and intended audience

Hedley is C/C++ a header file designed to smooth over some platform-specific annoyances. The idea is to get rid of a bunch of the #ifdefs in your code and put them in Hedley instead or, if you haven't bothered with platform-specific functionality in your code, to make it easier to do so. This code can be used to improve:

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-28. Source: https://github.com/nemequ/hedley/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2024-09-20. Saved release: v15 · 2021-02-05. These dates do not guarantee ongoing maintenance.

Technologies
C++
Licence
CC0-1.0. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-12. This does not test every feature.

Browse related categories