preprocessor

simple preprocessor for any type of file
git clone https://noulin.net/git/preprocessor.git
Log | Files | Refs | LICENSE

commit 42ed3c7b5b4f9a4fad9b0d0a1008515fe4b04cfa
parent d02fafe3b0ab746fb1772c7aec7ee900cc9bcb31
Author: Remy Noulin <loader2x@gmail.com>
Date:   Tue, 30 Apr 2019 19:41:25 +0200

add isCompiledWithCurrentLisheepyVersion

Diffstat:
Mpackage.yml | 12++++++------
Mpreprocessor.c | 5+++++
Mpreprocessor.h | 3+++
3 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/package.yml b/package.yml @@ -1,15 +1,15 @@ --- name: preprocessor - version: 0.0.2 - description: "simple preprocessor for any type of file" + version: 0.0.3 + description: simple preprocessor for any type of file bin: ./preprocessor.c repository: type: git - url: git+https://github.com/RemyNoulin/preprocessor.git + url: "git+https://github.com/RemyNoulin/preprocessor.git" keywords: - - utility + - utility author: Remy license: MIT bugs: - url: https://github.com/RemyNoulin/preprocessor/issues - homepage: https://github.com/RemyNoulin/preprocessor#readme + url: "https://github.com/RemyNoulin/preprocessor/issues" + homepage: "https://github.com/RemyNoulin/preprocessor#readme" diff --git a/preprocessor.c b/preprocessor.c @@ -287,3 +287,8 @@ smallArrayt *preprocess(char *filename) { freeManyS(dir, commentConfig, commentEndConfig); return lines; } + +bool checkLibsheepyVersionPreprocessor(const char *currentLibsheepyVersion) { + return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION); +} + diff --git a/preprocessor.h b/preprocessor.h @@ -2,3 +2,6 @@ #include "libsheepyObject.h" smallArrayt *preprocess(char *filename); + +#define isPreprocessorCompiledWithCurrentLisheepyVersion checkLibsheepyVersionPreprocessor(LIBSHEEPY_VERSION) +bool checkLibsheepyVersionPreprocessor(const char *currentLibsheepyVersion);