Skip to content

AUI_DEFER#

Defers execution of the next block to the end of current block (RAII scope).

Header:#include <AUI/Util/kAUI.h>
CMake:aui_link(my_target PUBLIC aui::core)

Definition#

#define AUI_DEFER ARaiiHelper AUI_PP_CAT($AUI_DEFER_at_line_, __LINE__) = [&]

Detailed Description#

This example prints "Hello world\n":

AUI_DEFER { printf(" world\n") };
printf("Hello");
See also: ARaiiHelper.