Skip to content

Commit 81915d6

Browse files
committed
Fix JERRY_ERROR_MSG macro.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
1 parent 25710ad commit 81915d6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

jerry-core/jrt/jrt.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,7 @@ extern void __noreturn jerry_unimplemented (const char *comment, const char *fil
120120
#define JERRY_DDDLOG(...) JERRY_DLOG (__VA_ARGS__)
121121
#endif /* !JERRY_ENABLE_LOG */
122122

123-
#define JERRY_ERROR_MSG(...) \
124-
do \
125-
{ \
126-
fprintf(stderr, __VA_ARGS__); \
127-
} while (0)
128-
123+
#define JERRY_ERROR_MSG(...) fprintf (stderr, __VA_ARGS__)
129124
#define JERRY_WARNING_MSG(...) JERRY_ERROR_MSG (__VA_ARGS__)
130125

131126
/**

0 commit comments

Comments
 (0)