summaryrefslogtreecommitdiff
path: root/src/char/char.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-12-27 21:23:46 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-01-07 15:31:38 -0800
commitc080e504e4d74027b985b1ed675c172c083cea76 (patch)
treeac084d16d9d40c0a0c950b66eb62a0e16795d486 /src/char/char.hpp
parentae30173d71d3bfc8514dbe70b6c90c9a3324b8fc (diff)
downloadtmwa-c080e504e4d74027b985b1ed675c172c083cea76.tar.gz
tmwa-c080e504e4d74027b985b1ed675c172c083cea76.tar.bz2
tmwa-c080e504e4d74027b985b1ed675c172c083cea76.tar.xz
tmwa-c080e504e4d74027b985b1ed675c172c083cea76.zip
Use cxxstdio
Diffstat (limited to 'src/char/char.hpp')
-rw-r--r--src/char/char.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/char/char.hpp b/src/char/char.hpp
index 2389bd9..5c66dd4 100644
--- a/src/char/char.hpp
+++ b/src/char/char.hpp
@@ -1,6 +1,7 @@
#ifndef CHAR_HPP
#define CHAR_HPP
+#include "../common/const_array.hpp"
#include "../common/mmo.hpp"
#define MAX_MAP_SERVERS 30
@@ -26,8 +27,10 @@ int mapif_sendall(const uint8_t *buf, unsigned int len);
int mapif_sendallwos(int fd, const uint8_t *buf, unsigned int len);
int mapif_send(int fd, const uint8_t *buf, unsigned int len);
-__attribute__((format(printf, 1, 2)))
-int char_log(const char *fmt, ...);
+void char_log(const_string line);
+
+#define CHAR_LOG(fmt, args...) \
+ char_log(static_cast<const std::string&>(STRPRINTF(fmt, ## args)))
extern int autosave_interval;