X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fdebug.cpp;h=8c02f1d6b00ad54a403b13b72afd2c1c575e8c7f;hb=b2102bfe49002f1ac10ca8288f5337e9feec7f65;hp=2e4992a78013f752ae51211db4d5d018cda11498;hpb=6a1670dbc31cc0e44178bbd9ad34ff0d5981a060;p=minetest.git diff --git a/src/debug.cpp b/src/debug.cpp index 2e4992a78..8c02f1d6b 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -18,17 +18,36 @@ 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 #include #include - +#include +#include "jthread/jmutex.h" +#include "jthread/jmutexautolock.h" +#include "config.h" /* Debug output */ +#define DEBUGSTREAM_COUNT 2 + FILE *g_debugstreams[DEBUGSTREAM_COUNT] = {stderr, NULL}; +#define DEBUGPRINT(...)\ +{\ + for(int i=0; i