A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
loba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wip++...
[loba.git]
/
misc.h
diff --git
a/misc.h
b/misc.h
index 1decbefd4b27fa6497aa3e0b94c5c70d9a496ac5..aee128e157aed15d7610f9b2dc9fd7be7fa26bfd 100644
(file)
--- a/
misc.h
+++ b/
misc.h
@@
-10,7
+10,12
@@
#define LOG_ISENABLED(priority) \
(_XBT_LOG_ISENABLEDV((*_XBT_LOGV(default)), (priority)))
#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
#endif // !MISC_H