Introducing make parameters todo, fixme and echo: todo/fixme enable printing of todo/fixme pragma messages if set to 1 (that are disabled by default after this commit); echo enables compilation/linking command line echoing if set to 1.
This commit is contained in:
+12
-2
@@ -70,8 +70,18 @@ typedef enum
|
||||
#define JERRY_STATIC_ASSERT( x ) typedef char JERRY_STATIC_ASSERT_GLUE( static_assertion_failed_, __LINE__) [ ( x ) ? 1 : -1 ] __unused
|
||||
|
||||
#define CALL_PRAGMA(x) _Pragma (#x)
|
||||
#define TODO(x) CALL_PRAGMA(message ("TODO - " #x))
|
||||
#define FIXME(x) CALL_PRAGMA(message ("FIXME - " #x))
|
||||
|
||||
#ifdef JERRY_PRINT_TODO
|
||||
# define TODO(x) CALL_PRAGMA(message ("TODO - " #x))
|
||||
#else /* !JERRY_PRINT_TODO */
|
||||
# define TODO(X)
|
||||
#endif /* !JERRY_PRINT_TODO */
|
||||
|
||||
#ifdef JERRY_PRINT_FIXME
|
||||
# define FIXME(x) CALL_PRAGMA(message ("FIXME - " #x))
|
||||
#else /* !JERRY_PRINT_FIXME */
|
||||
# define FIXME(X)
|
||||
#endif /* !JERRY_PRINT_FIXME */
|
||||
|
||||
/**
|
||||
* Variable that must not be referenced.
|
||||
|
||||
Reference in New Issue
Block a user