File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ project (JerryCore CXX C ASM)
43
43
set (DEFINES_JERRY_RELEASE JERRY_NDEBUG )
44
44
45
45
# Unit tests
46
- set (DEFINES_JERRY_UNITTESTS JERRY_ENABLE_PRETTY_PRINTER )
46
+ set (DEFINES_JERRY_UNITTESTS JERRY_ENABLE_PRETTY_PRINTER JERRY_HEAVY_DEBUG )
47
47
48
48
# Modifiers
49
49
# Full profile
Original file line number Diff line number Diff line change 289
289
rcs_chunked_list_t ::assert_list_is_correct (void )
290
290
const
291
291
{
292
- #ifndef JERRY_NDEBUG
292
+ #ifdef JERRY_HEAVY_DEBUG
293
293
for (node_t *node_iter_p = get_first ();
294
294
node_iter_p != NULL ;
295
295
node_iter_p = get_next (node_iter_p))
@@ -308,7 +308,7 @@ const
308
308
&& next_node_p != NULL
309
309
&& get_prev (next_node_p) == node_iter_p));
310
310
}
311
- #endif /* !JERRY_NDEBUG */
311
+ #endif /* JERRY_HEAVY_DEBUG */
312
312
} /* rcs_chunked_list_t::assert_list_is_correct */
313
313
314
314
/* *
318
318
rcs_chunked_list_t ::assert_node_is_correct (const rcs_chunked_list_t ::node_t * node_p) /* *< the node */
319
319
const
320
320
{
321
- #ifndef JERRY_NDEBUG
321
+ #ifdef JERRY_HEAVY_DEBUG
322
322
JERRY_ASSERT (node_p != NULL );
323
323
324
324
assert_list_is_correct ();
@@ -337,7 +337,7 @@ const
337
337
}
338
338
339
339
JERRY_ASSERT (is_in_list);
340
- #else /* JERRY_NDEBUG */
340
+ #else /* JERRY_HEAVY_DEBUG */
341
341
(void ) node_p;
342
- #endif /* JERRY_NDEBUG */
342
+ #endif /* JERRY_HEAVY_DEBUG */
343
343
} /* rcs_chunked_list_t::assert_node_is_correct */
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ rcs_recordset_t::get_record_size (rcs_record_t* rec_p) /**< record */
613
613
void
614
614
rcs_recordset_t ::assert_state_is_correct (void )
615
615
{
616
- #ifndef JERRY_NDEBUG
616
+ #ifdef JERRY_HEAVY_DEBUG
617
617
size_t node_size_sum = 0 ;
618
618
size_t record_size_sum = 0 ;
619
619
@@ -658,7 +658,7 @@ rcs_recordset_t::assert_state_is_correct (void)
658
658
}
659
659
660
660
JERRY_ASSERT (node_size_sum == record_size_sum);
661
- #endif /* !JERRY_NDEBUG */
661
+ #endif /* JERRY_HEAVY_DEBUG */
662
662
} /* rcs_recordset_t::assert_state_is_correct */
663
663
664
664
/* *
You can’t perform that action at this time.
0 commit comments