libsheepy

C lib for handling text files, strings and json like data structure with an object oriented system
git clone https://spartatek.se/git/libsheepy.git
Log | Files | Refs | README | LICENSE

commit 4fbcca506edc8576a737075a2adf2466c797efe4
parent 571d2960641e347e06b6950f1779d5c5bf01cdc1
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sun, 19 Sep 2021 21:36:40 +0200

make logSystem return the exit code from system()

release/libsheepy.h | 6 +++---
src/libsheepy.h     | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)

Diffstat:
Mrelease/libsheepy.h | 6+++---
Msrc/libsheepy.h | 6+++---
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/release/libsheepy.h b/release/libsheepy.h @@ -98,7 +98,7 @@ // version accoring to the version package: Release.Major.minor.patch // https://noulin.net/version/file/README.md.html -#define LIBSHEEPY_VERSION "2.2.6.2" +#define LIBSHEEPY_VERSION "2.2.6.3" #ifndef SH_PREFIX #define SH_PREFIX(NAME) NAME @@ -3053,11 +3053,11 @@ char **systemOutf(const char *fmt, ...) MUST_CHECK; int systemf(const char *fmt, ...) MUST_CHECK; // system commands and log -#define logSystem(cmd) do{\ +#define logSystem(cmd) funcbegin\ var UNIQVAR(cm) = cmd;\ logI("%s",UNIQVAR(cm));\ system (UNIQVAR(cm));\ - } while(0) + funcend #define logExec logSystem #define logSystemOut(cmd) ({\ var UNIQVAR(cm) = cmd;\ diff --git a/src/libsheepy.h b/src/libsheepy.h @@ -98,7 +98,7 @@ // version accoring to the version package: Release.Major.minor.patch // https://noulin.net/version/file/README.md.html -#define LIBSHEEPY_VERSION "2.2.6.2" +#define LIBSHEEPY_VERSION "2.2.6.3" #ifndef SH_PREFIX #define SH_PREFIX(NAME) NAME @@ -3053,11 +3053,11 @@ char **systemOutf(const char *fmt, ...) MUST_CHECK; int systemf(const char *fmt, ...) MUST_CHECK; // system commands and log -#define logSystem(cmd) do{\ +#define logSystem(cmd) funcbegin\ var UNIQVAR(cm) = cmd;\ logI("%s",UNIQVAR(cm));\ system (UNIQVAR(cm));\ - } while(0) + funcend #define logExec logSystem #define logSystemOut(cmd) ({\ var UNIQVAR(cm) = cmd;\