Move log level to default port
Setting the log level should be specified by the actual port. JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
+2
-14
@@ -83,19 +83,8 @@ extern void __noreturn jerry_unimplemented (const char *, const char *, const ch
|
||||
#define JERRY_UNUSED(x) ((void) (x))
|
||||
|
||||
#ifdef JERRY_ENABLE_LOG
|
||||
#define JERRY_LOG(lvl, ...) \
|
||||
do \
|
||||
{ \
|
||||
if (lvl <= jerry_debug_level) \
|
||||
{ \
|
||||
jerry_port_log (JERRY_LOG_LEVEL_DEBUG, __VA_ARGS__); \
|
||||
} \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
#define JERRY_DLOG(...) JERRY_LOG (1, __VA_ARGS__)
|
||||
#define JERRY_DDLOG(...) JERRY_LOG (2, __VA_ARGS__)
|
||||
#define JERRY_DDDLOG(...) JERRY_LOG (3, __VA_ARGS__)
|
||||
#define JERRY_DLOG(...) jerry_port_log (JERRY_LOG_LEVEL_DEBUG, __VA_ARGS__)
|
||||
#define JERRY_DDLOG(...) jerry_port_log (JERRY_LOG_LEVEL_TRACE, __VA_ARGS__)
|
||||
#else /* !JERRY_ENABLE_LOG */
|
||||
#define JERRY_DLOG(...) \
|
||||
do \
|
||||
@@ -106,7 +95,6 @@ extern void __noreturn jerry_unimplemented (const char *, const char *, const ch
|
||||
} \
|
||||
} while (0)
|
||||
#define JERRY_DDLOG(...) JERRY_DLOG (__VA_ARGS__)
|
||||
#define JERRY_DDDLOG(...) JERRY_DLOG (__VA_ARGS__)
|
||||
#endif /* JERRY_ENABLE_LOG */
|
||||
|
||||
#define JERRY_ERROR_MSG(...) jerry_port_log (JERRY_LOG_LEVEL_ERROR, __VA_ARGS__)
|
||||
|
||||
Reference in New Issue
Block a user