This commit is contained in:
2025-08-09 11:07:11 -04:00
parent ca6b4754f9
commit e137560d64
10 changed files with 395 additions and 135 deletions

34
examples/version_test.c Normal file
View File

@@ -0,0 +1,34 @@
/*
* NOSTR Core Library - Version Test Example
* Demonstrates the automatic version increment system
*/
#include <stdio.h>
#include "nostr_core.h"
#include "version.h"
int main() {
printf("NOSTR Core Library Version Test\n");
printf("===============================\n\n");
// Display version information
printf("Version: %s\n", nostr_core_get_version());
printf("Full Version: %s\n", nostr_core_get_version_full());
printf("Build Info: %s\n", nostr_core_get_build_info());
printf("\nVersion Macros:\n");
printf("VERSION_MAJOR: %d\n", VERSION_MAJOR);
printf("VERSION_MINOR: %d\n", VERSION_MINOR);
printf("VERSION_PATCH: %d\n", VERSION_PATCH);
printf("VERSION_STRING: %s\n", VERSION_STRING);
printf("VERSION_TAG: %s\n", VERSION_TAG);
printf("\nBuild Information:\n");
printf("BUILD_DATE: %s\n", BUILD_DATE);
printf("BUILD_TIME: %s\n", BUILD_TIME);
printf("BUILD_TIMESTAMP: %s\n", BUILD_TIMESTAMP);
printf("GIT_HASH: %s\n", GIT_HASH);
printf("GIT_BRANCH: %s\n", GIT_BRANCH);
return 0;
}