aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2019-04-20 11:30:58 +0200
committerBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2019-04-20 11:30:58 +0200
commitaa09497c677727a3a756004d163d1d480dbff726 (patch)
treefc5f9c3ce1c746473260a749b4de8d0fb95f6177
parentbe1e9d37d9809ee55f26d811208fa64ea9b3785a (diff)
downloadlanes-aa09497c677727a3a756004d163d1d480dbff726.tar.gz
lanes-aa09497c677727a3a756004d163d1d480dbff726.tar.bz2
lanes-aa09497c677727a3a756004d163d1d480dbff726.zip
DEBUGSPEW_CODE in cancel_hook
-rw-r--r--src/lanes.c1
-rw-r--r--src/macros_and_utils.h2
2 files changed, 2 insertions, 1 deletions
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)
143static void cancel_hook( lua_State* L, lua_Debug* ar) 143static void cancel_hook( lua_State* L, lua_Debug* ar)
144{ 144{
145 (void)ar; 145 (void)ar;
146 DEBUGSPEW_CODE( fprintf( stderr, "cancel_hook\n"));
146 if( cancel_test( L) != CANCEL_NONE) 147 if( cancel_test( L) != CANCEL_NONE)
147 { 148 {
148 cancel_error( L); 149 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 @@
12#define inline __inline 12#define inline __inline
13#endif 13#endif
14 14
15 #define USE_DEBUG_SPEW 0 15#define USE_DEBUG_SPEW 0
16#if USE_DEBUG_SPEW 16#if USE_DEBUG_SPEW
17extern char const* debugspew_indent; 17extern char const* debugspew_indent;
18#define INDENT_BEGIN "%.*s " 18#define INDENT_BEGIN "%.*s "