commit a36abdee82e08bd74dcacf71530a7f62e17a7549
parent 86f93301b0557d49ffe8279bdf9950a96591ff7e
Author: Remy Noulin <loader2x@gmail.com>
Date: Tue, 30 Apr 2019 19:40:54 +0200
add isCompiledWithCurrentLisheepyVersion
Diffstat:
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/filelock.c b/filelock.c
@@ -195,3 +195,8 @@ internal void setFilelock(filelockt *self, const char *filepath) {
internal const char* getFilelock(filelockt *self) {
return self->filename;
}
+
+bool checkLibsheepyVersionFilelock(const char *currentLibsheepyVersion) {
+ return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION);
+}
+
diff --git a/filelock.h b/filelock.h
@@ -102,3 +102,6 @@ void registerMethodsFilelock(filelockFunctionst *f);
filelockt* allocFilelock(const char *filepath);
// end class filelock
+
+#define isFilelockCompiledWithCurrentLisheepyVersion checkLibsheepyVersionFilelock(LIBSHEEPY_VERSION)
+bool checkLibsheepyVersionFilelock(const char *currentLibsheepyVersion);
diff --git a/package.yml b/package.yml
@@ -1,16 +1,15 @@
---
name: filelock
- version: 0.0.2
- description: "class for locking files in filesystem"
+ version: 0.0.3
+ description: class for locking files in filesystem
bin: ./filelock.c
repository:
type: git
- url: git+https://github.com/RemyNoulin/filelock.git
+ url: "git+https://github.com/RemyNoulin/filelock.git"
keywords:
- utility
author: Remy
license: MIT
bugs:
- url: https://github.com/RemyNoulin/filelock/issues
- homepage: https://github.com/RemyNoulin/filelock#readme
- #compileHelp: # text displayed when there is a compilation error
+ url: "https://github.com/RemyNoulin/filelock/issues"
+ homepage: "https://github.com/RemyNoulin/filelock#readme"