NE_VERSION_MATCH(3)
π NE_VERSION_MATCH(3) β neon API reference, bestie! π
okay so this page is all about library versioning, and it lives in the neon API reference as page NE_VERSION_MATCH(3). The stars are ne_version_match, ne_version_string, and ne_version_library. Slay. π
πΈ NAME πΈ
ne_version_match, ne_version_string, ne_version_library β library versioning. periodt. π
π¦ 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);
β¨ DESCRIPTION β¨
okay so ne_version_match returns zero if the library version is backwards-compatible with the version given in the major and minor parameters. that's the whole vibe check. π«Ά
ne_version_string returns a string giving the library version and build information. iconic. π
ne_version_library returns a string giving the library version number alone, for example "0.37.0". no cap. π¦
π EXAMPLES π
bestie, say you want to require a version of neon which is backwards-compatible with version 1.2.0 β 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);
}
π HISTORY π
ne_version_library is available in neon 0.37.0 and later. noted, bestie. πβ¨
π COPYRIGHT π
Copyright Β© 2001-2026 Joe Orton
π source: neon Β· version/date: 03/20/2026 Β· page: NE_VERSION_MATCH(3) β mwah, bye bestie! π
π¦ where this page comes from
- arch rolling: neon 0.37.1-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms