projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update Mapgen VoxelManipulator on buffer invalidation
[oweals/minetest.git]
/
src
/
debug.cpp
diff --git
a/src/debug.cpp
b/src/debug.cpp
index b5bf3f705b772d5a923a31a300adf7c7bb7ef773..8c02f1d6b00ad54a403b13b72afd2c1c575e8c7f 100644
(file)
--- a/
src/debug.cpp
+++ b/
src/debug.cpp
@@
-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"
#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 <map>
#include "jthread/jmutex.h"
#include "jthread/jmutexautolock.h"
-
+#include "config.h"
/*
Debug output
*/
/*
Debug output
*/
@@
-95,6
+96,9
@@
public:
}
std::streamsize xsputn(const char *s, std::streamsize n)
{
}
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)
for(int i=0; i<DEBUGSTREAM_COUNT; i++)
{
if(g_debugstreams[i] == stderr && m_disable_stderr)
@@
-206,7
+210,6
@@
JMutex g_debug_stacks_mutex;
void debug_stacks_init()
{
void debug_stacks_init()
{
- g_debug_stacks_mutex.Init();
}
void debug_stacks_print_to(std::ostream &os)
}
void debug_stacks_print_to(std::ostream &os)