From 10ea9030bb64a292c6dbea3922366cee3f19e1a0 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 2 Apr 2021 20:10:08 +0900 Subject: [PATCH] Quick flag to force-disable threads --- src/kuroko/kuroko.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/kuroko/kuroko.h b/src/kuroko/kuroko.h index 4f14c53..94be33c 100644 --- a/src/kuroko/kuroko.h +++ b/src/kuroko/kuroko.h @@ -26,11 +26,15 @@ typedef int krk_integer_type; # define ENABLE_THREADING #endif +#ifdef STRICTLY_NO_THREADS +# undef ENABLE_THREADING +#endif + #ifdef DEBUG -#define ENABLE_DISASSEMBLY -#define ENABLE_TRACING -#define ENABLE_SCAN_TRACING -#define ENABLE_STRESS_GC +# define ENABLE_DISASSEMBLY +# define ENABLE_TRACING +# define ENABLE_SCAN_TRACING +# define ENABLE_STRESS_GC #endif #ifndef _WIN32