MCPcopy Create free account
hub / github.com/boostorg/build / check_ints

Function check_ints

v2/engine/boehm_gc/tests/test.c:353–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void check_ints(sexpr list, int low, int up)
354{
355 if (SEXPR_TO_INT(car(car(list))) != low) {
356 (void)GC_printf(
357 "List reversal produced incorrect list - collector is broken\n");
358 FAIL;
359 }
360 if (low == up) {
361 if (cdr(list) != nil) {
362 (void)GC_printf("List too long - collector is broken\n");
363 FAIL;
364 }
365 } else {
366 check_ints(cdr(list), low+1, up);
367 }
368}
369
370# define UNCOLLECTABLE_CDR(x) (sexpr)(~(GC_word)(cdr(x)))
371

Callers 2

tiny_reverse_testFunction · 0.85
reverse_testFunction · 0.85

Calls 1

GC_printfFunction · 0.85

Tested by

no test coverage detected