simpleTemplates

Library for processing templates
git clone https://noulin.net/git/simpleTemplates.git
Log | Files | Refs | LICENSE

commit b678386565b30051d5a4ca2744499d33baac7513
parent cea63e60dfe6a254b9c5e37f6fe2946edde97a39
Author: Remy Noulin <loader2x@gmail.com>
Date:   Tue, 30 Apr 2019 19:41:47 +0200

add isCompiledWithCurrentLisheepyVersion

Diffstat:
Mpackage.yml | 10+++++-----
MsimpleTemplates.c | 5+++++
MsimpleTemplates.h | 3+++
3 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/package.yml b/package.yml @@ -1,15 +1,15 @@ --- name: simpleTemplates - version: 0.0.3 - description: "Library for processing templates" + version: 0.0.4 + description: Library for processing templates bin: ./simpleTemplates.c repository: type: git - url: git+https://github.com/RemyNoulin/simpleTemplates.git + url: "git+https://github.com/RemyNoulin/simpleTemplates.git" keywords: - templates author: Remy license: MIT bugs: - url: https://github.com/RemyNoulin/simpleTemplates/issues - homepage: https://github.com/RemyNoulin/simpleTemplates#readme + url: "https://github.com/RemyNoulin/simpleTemplates/issues" + homepage: "https://github.com/RemyNoulin/simpleTemplates#readme" diff --git a/simpleTemplates.c b/simpleTemplates.c @@ -49,3 +49,8 @@ bool simpleTemplatesInsertFiles(char *templ, char *dst, smallDictt *keyFiles) { terminateG(template); return true; } + +bool checkLibsheepyVersionSimpleTemplates(const char *currentLibsheepyVersion) { + return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION); +} + diff --git a/simpleTemplates.h b/simpleTemplates.h @@ -5,3 +5,6 @@ // key values bool simpleTemplatesInsertFiles(char *templ, char *dst, smallDictt *keyFiles); // key file + +#define isSimpleTemplatesCompiledWithCurrentLisheepyVersion checkLibsheepyVersionSimpleTemplates(LIBSHEEPY_VERSION) +bool checkLibsheepyVersionSimpleTemplates(const char *currentLibsheepyVersion);