*/
+#include "porting.h"
#include "debug.h"
#include "exceptions.h"
#include "threads.h"
#include <stdlib.h>
#include <cstring>
#include <map>
-#include <jmutex.h>
-#include <jmutexautolock.h>
-
+#include "jthread/jmutex.h"
+#include "jthread/jmutexautolock.h"
+#include "config.h"
/*
Debug output
*/
}
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)
void debug_stacks_init()
{
- g_debug_stacks_mutex.Init();
}
void debug_stacks_print_to(std::ostream &os)