--- parser3/src/include/pa_config_includes.h 2005/08/09 08:14:49 1.31 +++ parser3/src/include/pa_config_includes.h 2010/11/24 00:20:47 1.33 @@ -175,6 +175,11 @@ inline size_t min(size_t a, size_t b){ r #endif +#ifdef WIN32 +#define THREAD_LOCAL __declspec(thread) +#else +#define THREAD_LOCAL // __thread // multithreading support required only for apache2 module +#endif #if _MSC_VER // using this in calls to parent constructors @@ -228,4 +233,11 @@ void pa_release_assert(const char* str, #define assert(exp) (void)( (exp) || (pa_release_assert(#exp, __FILE__, __LINE__), 0) ) #endif +/// to debug backtrace pointers switch this on: +#if defined(_DEBUG) || defined(PA_RELEASE_ASSERTS) +//// this switches on straightforward realloc implementation, bad for profiling +//// note: this is incompatible with -DGC_ASSERTIONS, which can be switched ON in win32/gc/NT_THREADS_MAKEFILE +#define GC_DEBUG +#endif + #endif