The TBB_DO_ASSERT Macro

The macro TBB_DO_ASSERT controls whether error checking is enabled in the header files. Define TBB_DO_ASSERT as 1 to enable error checking.

If an error is detected, the library prints an error message on stderr and calls the standard C routine abort. To stop a program when internal error checking detects a failure, place a breakpoint on tbb::assertion_failure.

Tip

On Windows systems, debug builds implicitly set TBB_DO_ASSERT to 1.

Get Intel Threading Building Blocks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.