CARB_INCLUDE_PURIFY_TEST

Defined in carb/Defines.h

CARB_INCLUDE_PURIFY_TEST(...)

A macro that is used only for public includes to define a function which will instantiate templates.

The templates are instantiated to make sure that all of the required symbols are available for compilation. Example usage:

CARB_INCLUDE_PURIFY_TEST({
    carb::Delegate<void()> del;
});

Note

The braces must be specified inside the macro parentheses.

Note

This function is never executed, merely compiled to test include purification. Unit tests are responsible for full testing.

Note

This macro only produces a function if CARB_INCLUDE_PURIFY_NAME is set to a function name. This happens in Carbonite’s premake5.lua file when the include purification projects are generated.