commit 6bca50b14fa967fd78019e45945478f268c0f3ac
parent 1bc992509313cc04e3c6e6e0bc5431ef03ac6481
Author: Remy Noulin <loader2x@gmail.com>
Date: Tue, 30 Apr 2019 19:41:32 +0200
add isCompiledWithCurrentLisheepyVersion
Diffstat:
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/cRing.c b/cRing.c
@@ -269,3 +269,8 @@ internal baset* getFromRing(ringt *self, intmax_t index) {
baset *r = self->f->get( cAr(self), (index + self->head) % lenO(cAr(self)));
return r;
}
+
+bool checkLibsheepyVersionRing(const char *currentLibsheepyVersion) {
+ return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION);
+}
+
diff --git a/cRing.h b/cRing.h
@@ -108,3 +108,6 @@ ringt* allocRing(/*INIT DATA */);
#define firstG firstO
// end class ring
+
+#define isRingCompiledWithCurrentLisheepyVersion checkLibsheepyVersionRing(LIBSHEEPY_VERSION)
+bool checkLibsheepyVersionRing(const char *currentLibsheepyVersion);
diff --git a/package.yml b/package.yml
@@ -1,15 +1,15 @@
---
name: ring
- version: 0.0.1
- description: "dynamic ring array"
+ version: 0.0.2
+ description: dynamic ring array
bin: ./cRing.c
repository:
type: git
- url: git+https://github.com/RemyNoulin/ring.git
+ url: "git+https://github.com/RemyNoulin/ring.git"
keywords:
- utility
author: Remy
license: MIT
bugs:
- url: https://github.com/RemyNoulin/ring/issues
- homepage: https://github.com/RemyNoulin/ring#readme
+ url: "https://github.com/RemyNoulin/ring/issues"
+ homepage: "https://github.com/RemyNoulin/ring#readme"