.
This commit is contained in:
34
examples/version_test.c
Normal file
34
examples/version_test.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user