Arranging JERRY_UNIMPLEMENTED macro usages and adding comments to each invocation of the macro.
This commit is contained in:
+8
-8
@@ -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__); \
|
||||
|
||||
Reference in New Issue
Block a user