summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2015-01-09 15:07:59 +0100
committerMattes D <github@xoft.cz>2015-01-22 20:12:42 +0100
commita9b8a530b1e082d2ab108947ef28e0a58c8fd838 (patch)
tree583a1b13642b8f0bd39afe9d313effa8435446a9 /src/Globals.h
parentcNetwork: Linux compilation fix. (diff)
downloadcuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar
cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.gz
cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.bz2
cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.lz
cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.xz
cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.tar.zst
cuberite-a9b8a530b1e082d2ab108947ef28e0a58c8fd838.zip
Diffstat (limited to '')
-rw-r--r--src/Globals.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h
index f0726454b..51ddc4e79 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -298,6 +298,16 @@ void inline LOGD(const char* a_Format, ...)
va_end(argList);
}
+void inline LOG(const char* a_Format, ...) FORMATSTRING(1, 2);
+
+void inline LOG(const char* a_Format, ...)
+{
+ va_list argList;
+ va_start(argList, a_Format);
+ vprintf(a_Format, argList);
+ va_end(argList);
+}
+
#endif