diff options
| author | Benoit 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 |
|---|---|---|
| committer | Benoit 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 |
| commit | aa09497c677727a3a756004d163d1d480dbff726 (patch) | |
| tree | fc5f9c3ce1c746473260a749b4de8d0fb95f6177 /src | |
| parent | be1e9d37d9809ee55f26d811208fa64ea9b3785a (diff) | |
| download | lanes-aa09497c677727a3a756004d163d1d480dbff726.tar.gz lanes-aa09497c677727a3a756004d163d1d480dbff726.tar.bz2 lanes-aa09497c677727a3a756004d163d1d480dbff726.zip | |
DEBUGSPEW_CODE in cancel_hook
Diffstat (limited to 'src')
| -rw-r--r-- | src/lanes.c | 1 | ||||
| -rw-r--r-- | src/macros_and_utils.h | 2 |
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) | |||
| 143 | static void cancel_hook( lua_State* L, lua_Debug* ar) | 143 | static 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 |
| 17 | extern char const* debugspew_indent; | 17 | extern char const* debugspew_indent; |
| 18 | #define INDENT_BEGIN "%.*s " | 18 | #define INDENT_BEGIN "%.*s " |
