NE_VERSION_MATCH(3)
π NE_VERSION_MATCH(3) π
okay bestie, welcome to the neon API reference β¨ this page is your one-stop shop for ne_version_match, ne_version_string, and ne_version_library β aka the whole library versioning situation π no cap.
πΈ NAME πΈ
ne_version_match, ne_version_string, ne_version_library β library versioning, fr fr π¦
β¨ SYNOPSIS β¨
#include <ne_utils.h>
int ne_version_match(int major, int minor);
const char *ne_version_string(void);
const char *ne_version_library(void);
like. look at her. iconic function signatures π
π DESCRIPTION π
okay so first up, ne_version_match β she takes major and minor as parameters, and she returns zero if the library version is backwards-compatible with the version you handed her. zero = good news = we slay π anything else means nope.
then we have ne_version_string β she returns a string giving you the library version and build information. the full tea, basically π«
and lastly ne_version_library β she returns a string with the library version number alone, like literally just "0.37.0" and nothing else. minimal. clean. main character energy π
π EXAMPLES π
say you wanna require a version of neon that's backwards-compatible with version 1.2.0. bestie, you'd do this:
if (ne_version_match(1, 2)) {
printf("Library version out of date: 1.2 required, found %s.",
ne_version_string());
exit(1);
}
not me writing version checks at 2am π but look how tidy it is tho π
π HISTORY π
the ne_version_library function is available in neon 0.37.0 and later. so if you're on anything older, she simply does not exist yet π
π COPYRIGHT π
Copyright Β© 2001-2026 Joe Orton
and that's the whole page, bestie!! go forth and version-check responsibly π¦β¨
this has been neon 0.37.1 from 15 March 2026 β mwah, ily, periodt π π
π¦ where this page comes from
- epel 10: neon-devel 0.37.1-4.el10_3 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- fedora 43: neon-devel 0.37.1-1.fc43 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- fedora 43: neon-devel 0.37.1-1.fc43 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- fedora 44: neon-devel 0.37.1-1.fc44 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- fedora 44: neon-devel 0.37.1-1.fc44 Β· LGPL-2.0-or-later AND GPL-2.0-or-later
- nixos 26.05: neon 0.37.1
- nixpkgs unstable: neon 0.37.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms