X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/fc5dcac1115a7112e7ad9d67ce7fe233790e0887..4f8948b8f67d26726a2e53c9afe1a110c037ce4b:/misc.h diff --git a/misc.h b/misc.h index 1decbef..aee128e 100644 --- a/misc.h +++ b/misc.h @@ -10,7 +10,12 @@ #define LOG_ISENABLED(priority) \ (_XBT_LOG_ISENABLEDV((*_XBT_LOGV(default)), (priority))) -#define ESSE(n) ((n) > 1 ? "s" : "") +/* Returns c-string "s" if n > 1, empty string "" otherwise. */ +#define ESSE(n) ((n) > 1 ? misc::str_esse : misc::str_nil) +namespace misc { + extern const char str_esse[]; + extern const char str_nil[]; +} #endif // !MISC_H