Compare commits

...

2 Commits

2 changed files with 2 additions and 6 deletions

View File

@ -6,11 +6,7 @@
#if !defined(MIJIN_COROUTINE_ENABLE_DEBUG_INFO) #if !defined(MIJIN_COROUTINE_ENABLE_DEBUG_INFO)
#if defined(MIJIN_DEBUG) # define MIJIN_COROUTINE_ENABLE_DEBUG_INFO 0 // Capture stack each time a coroutine is started. Warning, expensive! // TODO: maybe implement a lighter version only storing the return address?
# define MIJIN_COROUTINE_ENABLE_DEBUG_INFO 1
#else
# define MIJIN_COROUTINE_ENABLE_DEBUG_INFO 0
#endif
#endif #endif
#include <any> #include <any>

View File

@ -54,7 +54,7 @@ void backtraceErrorCallback(void* data, const char* msg, int /* errnum */)
btData.error = msg; btData.error = msg;
} }
backtrace_state* gBacktraceState = nullptr; thread_local backtrace_state* gBacktraceState = nullptr;
} // namespace } // namespace
// //