project('dolphin option', 'c') d = disabler() d2 = dependency(d) d3 = (d == d2) d4 = d + 0 d5 = d2 or true assert(d, 'Disabler did not cause this to be skipped.') assert(d2, 'Function laundered disabler did not cause this to be skipped.') assert(d3, 'Disabler comparison should yield disabler and thus this would not be called.') assert(d4, 'Disabler addition should yield disabler and thus this would not be called.') assert(d5, 'Disabler logic op should yield disabler and thus this would not be called.') number = 0 if d number = 1 else number = 2 endif assert(number == 0, 'Plain if handled incorrectly, value should be 0 but is @0@'.format(number)) if d.found() number = 1 else number = 2 endif assert(number == 2, 'If found handled incorrectly, value should be 2 but is @0@'.format(number))