From 2ed18491df025f1cc46930eb23318764158986d0 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 27 Aug 2015 17:03:56 +0300 Subject: [PATCH] Fix `JERRY_UNIMPLEMENTED_REF_UNUSED_VARS` so that call to `jerry_unimplemented` is placed after `if (false) { ... }` block. JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com --- jerry-core/jrt/jrt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jerry-core/jrt/jrt.h b/jerry-core/jrt/jrt.h index 8ced0a61e..5b195ff38 100644 --- a/jerry-core/jrt/jrt.h +++ b/jerry-core/jrt/jrt.h @@ -144,11 +144,11 @@ template extern void jerry_ref_unused_variables (const value #define JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(comment, ...) \ do \ { \ - jerry_unimplemented (comment, __FILE__, __func__, __LINE__); \ if (false) \ { \ jerry_ref_unused_variables (0, __VA_ARGS__); \ } \ + jerry_unimplemented (comment, __FILE__, __func__, __LINE__); \ } while (0) #else /* !JERRY_NDEBUG */ #define JERRY_UNREACHABLE() \ @@ -166,11 +166,11 @@ template extern void jerry_ref_unused_variables (const value #define JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(comment, ...) \ do \ { \ - jerry_unimplemented (comment, NULL, NULL, 0); \ if (false) \ { \ jerry_ref_unused_variables (0, __VA_ARGS__); \ } \ + jerry_unimplemented (comment, NULL, NULL, 0); \ } while (0) #endif /* JERRY_NDEBUG */