summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-01 14:58:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-01 14:58:21 +0300
commita391d50cc061b16bcae121a868e848f8ea7c65d2 (patch)
tree710a6660b5dc2177b9a2e932ea6070c3c966f1e8 /src/logger.cpp
parent39cf5c3a58e98b29eb7cfa0015b8e06458777fbc (diff)
downloadManaVerse-a391d50cc061b16bcae121a868e848f8ea7c65d2.tar.gz
ManaVerse-a391d50cc061b16bcae121a868e848f8ea7c65d2.tar.bz2
ManaVerse-a391d50cc061b16bcae121a868e848f8ea7c65d2.tar.xz
ManaVerse-a391d50cc061b16bcae121a868e848f8ea7c65d2.zip
Add support for logging in nacl to console.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 433713760..c1beca132 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -45,6 +45,9 @@
#define SPECIALLOG(x) __android_log_print(ANDROID_LOG_INFO, "manaplus", x);
#define DSPECIALLOG(x) __android_log_print(ANDROID_LOG_VERBOSE, \
"manaplus", x);
+#elif defined __native_client__ && defined(NACL_LOG)
+#define SPECIALLOG(x) std::cerr << x;
+#define DSPECIALLOG(x) std::cerr << x;
#else
#define SPECIALLOG(x)
#define DSPECIALLOG(x)