Update Mapgen VoxelManipulator on buffer invalidation
[oweals/minetest.git] / src / debug.cpp
index 278902a081b7fa2836063ace205771cbbcd4c871..8c02f1d6b00ad54a403b13b72afd2c1c575e8c7f 100644 (file)
@@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 */
 
 
+#include "porting.h"
 #include "debug.h"
 #include "exceptions.h"
 #include "threads.h"
@@ -27,7 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <map>
 #include "jthread/jmutex.h"
 #include "jthread/jmutexautolock.h"
-
+#include "config.h"
 /*
        Debug output
 */
@@ -95,6 +96,9 @@ public:
        }
        std::streamsize xsputn(const char *s, std::streamsize n)
        {
+#ifdef __ANDROID__
+               __android_log_print(ANDROID_LOG_VERBOSE, PROJECT_NAME, "%s", s);
+#endif
                for(int i=0; i<DEBUGSTREAM_COUNT; i++)
                {
                        if(g_debugstreams[i] == stderr && m_disable_stderr)