summaryrefslogtreecommitdiff
path: root/src/char/char.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/char.hpp')
-rw-r--r--src/char/char.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/char/char.hpp b/src/char/char.hpp
index a771730..1151750 100644
--- a/src/char/char.hpp
+++ b/src/char/char.hpp
@@ -71,5 +71,10 @@ void char_log(XString line);
#define CHAR_LOG(fmt, ...) \
char_log(STRPRINTF(fmt, ## __VA_ARGS__))
+#define CHAR_LOG_AND_ECHO(...) \
+ do { \
+ PRINTF(__VA_ARGS__); \
+ CHAR_LOG(__VA_ARGS__); \
+ } while (0)
} // namespace char_
} // namespace tmwa