diff options
author | c+1 | 2023-10-10 11:26:44 -0400 |
---|---|---|
committer | c+1 | 2023-10-10 11:26:44 -0400 |
commit | 58c7a71a50318940e747c365cc3f207dba432977 (patch) | |
tree | 7d173f5433fba1b01c531610a0bf70684b8ca1de /src/include/hlkt.h | |
parent | 78befa147eccfb169bf994da3d9bfba9be3631a6 (diff) |
fixed source.c, fixed preprocessor mem leaks, implemented new lexer
Diffstat (limited to 'src/include/hlkt.h')
-rw-r--r-- | src/include/hlkt.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/hlkt.h b/src/include/hlkt.h index 4496ce1..ebcb7f6 100644 --- a/src/include/hlkt.h +++ b/src/include/hlkt.h @@ -10,17 +10,19 @@ static int hlkt_failed = 0; /* number of tests that have failed */ #define HLKT_LOG() HLKT_HIDE( \ if ((hlkt_run > 0) && (hlkt_failed > 0)) { \ - log_war("HLKT: %d/%d tests failed", hlkt_failed, hlkt_run); \ + log_err("HLKT: %d/%d tests failed", hlkt_failed, hlkt_run); \ } else { \ - log_inf("HLKT: all %d tests passed", hlkt_run); \ + log_dbg("HLKT: all %d tests passed", hlkt_run); \ } \ ) #define HLKT_ASS(pred) HLKT_HIDE( \ hlkt_run ++; \ - if (! pred) { \ + if (! (pred)) { \ hlkt_failed ++; \ - log_err("HLKT: test [%s] failed: %s:%s:%d", #pred, __FILE__, __func__, __LINE__); \ + log_war("HLKT: test failed: %s/%s/%d", __FILE__, __func__, __LINE__); \ + } else { \ + log_dbg("HLKT: test passed: %s/%s/%d", __FILE__, __func__, __LINE__); \ } \ ) |