From c080e504e4d74027b985b1ed675c172c083cea76 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 27 Dec 2012 21:23:46 -0800 Subject: Use cxxstdio --- src/char/char.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/char/char.hpp') 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(STRPRINTF(fmt, ## args))) extern int autosave_interval; -- cgit v1.2.3-60-g2f50