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
This commit is contained in:
Ruben Ayrapetyan
2015-08-27 17:03:56 +03:00
parent 845b0d5006
commit 2ed18491df
+2 -2
View File
@@ -144,11 +144,11 @@ template<typename... values> 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<typename... values> 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 */