From aa09497c677727a3a756004d163d1d480dbff726 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Sat, 20 Apr 2019 11:30:58 +0200 Subject: DEBUGSPEW_CODE in cancel_hook --- src/lanes.c | 1 + src/macros_and_utils.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lanes.c b/src/lanes.c index abd4171..8762766 100644 --- a/src/lanes.c +++ b/src/lanes.c @@ -143,6 +143,7 @@ static inline enum e_cancel_request cancel_test( lua_State* L) static void cancel_hook( lua_State* L, lua_Debug* ar) { (void)ar; + DEBUGSPEW_CODE( fprintf( stderr, "cancel_hook\n")); if( cancel_test( L) != CANCEL_NONE) { cancel_error( L); diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h index e40a615..4b0b9d3 100644 --- a/src/macros_and_utils.h +++ b/src/macros_and_utils.h @@ -12,7 +12,7 @@ #define inline __inline #endif - #define USE_DEBUG_SPEW 0 +#define USE_DEBUG_SPEW 0 #if USE_DEBUG_SPEW extern char const* debugspew_indent; #define INDENT_BEGIN "%.*s " -- cgit v1.2.3-55-g6feb