P99

◆ P99_THROW_CALL_NOT_ZERO

#define P99_THROW_CALL_NOT_ZERO (   F,
  E,
  ... 
)    p00_throw_call_zero(!F(__VA_ARGS__), E, p00_unwind_top, P99_STRINGIFY(__LINE__), __func__, #F ", zero return")

Wrap a function call to F such that it throws an error on failure.

Similar to P99_THROW_CALL_ZERO, only that the condition for failure is inverted, that is 0 is considered a failure and all other values are considered success.

Definition at line 337 of file p99_try.h.