Arranging JERRY_UNIMPLEMENTED macro usages and adding comments to each invocation of the macro.

This commit is contained in:
Ruben Ayrapetyan
2014-10-27 19:48:03 +03:00
parent cd8ab6594b
commit fc751b0f15
24 changed files with 152 additions and 118 deletions
+8 -8
View File
@@ -123,16 +123,16 @@ extern void jerry_ref_unused_variables (int unused_variables_follow, ...);
jerry_unreachable (NULL, __FILE__, __FUNCTION__, __LINE__); \
} while (0)
#define JERRY_UNIMPLEMENTED() \
#define JERRY_UNIMPLEMENTED(comment) \
do \
{ \
jerry_unimplemented (NULL, __FILE__, __FUNCTION__, __LINE__); \
jerry_unimplemented (comment, __FILE__, __FUNCTION__, __LINE__); \
} while (0)
#define JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(...) \
#define JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(comment, ...) \
do \
{ \
jerry_unimplemented (NULL, __FILE__, __FUNCTION__, __LINE__); \
jerry_unimplemented (comment, __FILE__, __FUNCTION__, __LINE__); \
if (false) \
{ \
jerry_ref_unused_variables (0, __VA_ARGS__); \
@@ -145,16 +145,16 @@ extern void jerry_ref_unused_variables (int unused_variables_follow, ...);
jerry_unreachable (NULL, NULL, NULL, 0); \
} while (0)
#define JERRY_UNIMPLEMENTED() \
#define JERRY_UNIMPLEMENTED(comment) \
do \
{ \
jerry_unimplemented (NULL, NULL, NULL, 0); \
jerry_unimplemented (comment, NULL, NULL, 0); \
} while (0)
#define JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(...) \
#define JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(comment, ...) \
do \
{ \
jerry_unimplemented (NULL, NULL, NULL, 0); \
jerry_unimplemented (comment, NULL, NULL, 0); \
if (false) \
{ \
jerry_ref_unused_variables (0, __VA_ARGS__); \