Skip to content

Commit 41cadbf

Browse files
committed
Set version 1.0.0
Add version information to the library: - Added STACKMAN_VERSION_MAJOR, STACKMAN_VERSION_MINOR, STACKMAN_VERSION_PATCH macros - Added STACKMAN_VERSION string macro ("1.0.0") - Added STACKMAN_VERSION_NUMBER for numeric comparisons (10000) - Updated README.md to display version 1.0.0 This establishes the library as stable and ready for production use with all 8 platforms supported, tested, and documented.
1 parent 343dcd4 commit 41cadbf

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# stackman
44

5+
**Version 1.0.0**
6+
57
Simple low-level stack manipulation API and implementation for common platforms
68

79
## Purpose

stackman/stackman.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22
#ifndef STACKMAN_H
33
#define STACKMAN_H
44

5+
/* Version information */
6+
#define STACKMAN_VERSION_MAJOR 1
7+
#define STACKMAN_VERSION_MINOR 0
8+
#define STACKMAN_VERSION_PATCH 0
9+
10+
/* Version as a string */
11+
#define STACKMAN_VERSION "1.0.0"
12+
13+
/* Version as a single number for comparisons (MMmmpp: Major, minor, patch) */
14+
#define STACKMAN_VERSION_NUMBER ((STACKMAN_VERSION_MAJOR * 10000) + \
15+
(STACKMAN_VERSION_MINOR * 100) + \
16+
STACKMAN_VERSION_PATCH)
17+
518
/* the main include file. The following macros can be defined before including
619
* STACKMAN_OPTIONAL - Do not error if the platform isn't supported
720
* STACKMAN_VERBOSE - Emit the found platform to output

0 commit comments

Comments
 (0)