aboutsummaryrefslogtreecommitdiff
path: root/jerry-ext/handler/handler-assert.c
diff options
context:
space:
mode:
Diffstat (limited to 'jerry-ext/handler/handler-assert.c')
-rw-r--r--jerry-ext/handler/handler-assert.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/jerry-ext/handler/handler-assert.c b/jerry-ext/handler/handler-assert.c
index 96d8d597..13c6e0c9 100644
--- a/jerry-ext/handler/handler-assert.c
+++ b/jerry-ext/handler/handler-assert.c
@@ -13,10 +13,11 @@
* limitations under the License.
*/
-#include "jerryscript-ext/handler.h"
+#include <inttypes.h>
+
#include "jerryscript-port.h"
-#include <inttypes.h>
+#include "jerryscript-ext/handler.h"
/**
* Hard assert for scripts. The routine calls jerry_port_fatal on assertion failure.
@@ -35,8 +36,7 @@ jerryx_handler_assert_fatal (const jerry_call_info_t *call_info_p, /**< call inf
{
(void) call_info_p; /* unused */
- if (args_cnt == 1
- && jerry_value_is_true (args_p[0]))
+ if (args_cnt == 1 && jerry_value_is_true (args_p[0]))
{
return jerry_create_boolean (true);
}
@@ -65,7 +65,7 @@ jerryx_handler_assert_fatal (const jerry_call_info_t *call_info_p, /**< call inf
* on some systems it can be printed. To avoid differences in the uint32_t typdef
* The "PRIu32" macro is used to correctly add the formatter.
*/
- jerry_port_log (JERRY_LOG_LEVEL_ERROR, " %"PRIu32": ", idx);
+ jerry_port_log (JERRY_LOG_LEVEL_ERROR, " %" PRIu32 ": ", idx);
do
{
jerry_size_t copied_bytes = jerry_substring_to_utf8_char_buffer (property,
@@ -77,8 +77,7 @@ jerryx_handler_assert_fatal (const jerry_call_info_t *call_info_p, /**< call inf
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "%s", string_buffer);
current_size += copied_bytes;
- }
- while (total_size != current_size);
+ } while (total_size != current_size);
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "\n");
jerry_release_value (property);
@@ -103,8 +102,7 @@ jerryx_handler_assert_throw (const jerry_call_info_t *call_info_p, /**< call inf
{
(void) call_info_p; /* unused */
- if (args_cnt == 1
- && jerry_value_is_true (args_p[0]))
+ if (args_cnt == 1 && jerry_value_is_true (args_p[0]))
{
return jerry_create_boolean (true);
}