signalTimer

simple timer using SIGALARM
git clone https://noulin.net/git/signalTimer.git
Log | Files | Refs | LICENSE

commit 64424fdfda281c3f6bf00f6e2f76ff5f50f0962e
parent 76e6fc4ed6ebd399bdeea95c62a921ae6cb51f65
Author: Remy Noulin <loader2x@gmail.com>
Date:   Tue, 30 Apr 2019 19:41:40 +0200

add isCompiledWithCurrentLisheepyVersion

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

diff --git a/package.yml b/package.yml @@ -1,15 +1,15 @@ --- name: signalTimer - version: 0.0.4 - description: "simple timer using SIGALARM" + version: 0.0.5 + description: simple timer using SIGALARM bin: ./signalTimer.c repository: type: git - url: git+https://github.com/RemyNoulin/signalTimer.git + url: "git+https://github.com/RemyNoulin/signalTimer.git" keywords: - utility author: Remy license: MIT bugs: - url: https://github.com/RemyNoulin/signalTimer/issues - homepage: https://github.com/RemyNoulin/signalTimer#readme + url: "https://github.com/RemyNoulin/signalTimer/issues" + homepage: "https://github.com/RemyNoulin/signalTimer#readme" diff --git a/signalTimer.c b/signalTimer.c @@ -206,3 +206,8 @@ internal void alarmSigaction(int signal, siginfo_t *si, void *arg) { } /* TODO add method implementations */ + +bool checkLibsheepyVersionSignalTimer(const char *currentLibsheepyVersion) { + return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION); +} + diff --git a/signalTimer.h b/signalTimer.h @@ -95,3 +95,6 @@ void registerMethodsSignalTimer(signalTimerFunctionst *f); signalTimert* allocSignalTimer(/*TODO INIT DATA */); /* end class signalTimer*/ + +#define isSignalTimerCompiledWithCurrentLisheepyVersion checkLibsheepyVersionSignalTimer(LIBSHEEPY_VERSION) +bool checkLibsheepyVersionSignalTimer(const char *currentLibsheepyVersion);