From c6580b9c49f79e0cd6f8dff3465a91d7aefa0428 Mon Sep 17 00:00:00 2001 From: armatusmiles <akurotych@gmail.com> Date: Tue, 28 Aug 2018 20:36:27 +0300 Subject: [PATCH] [+] dap_fail msg --- dap_test.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dap_test.h b/dap_test.h index 9f32439..55a84a5 100755 --- a/dap_test.h +++ b/dap_test.h @@ -21,6 +21,9 @@ printf(__VA_ARGS__); \ printf("%s\n", TEXT_COLOR_RESET); +#define dap_fail(msg) \ + printf("\t%s%s!%s\n", TEXT_COLOR_RED, msg, TEXT_COLOR_RESET); \ + exit(-1); /* PIF - print if failed. For checking value in loop, for don't repeat output */ #define dap_assert_PIF(expr, msg) \ -- GitLab