Skip to content

AUI_ASSERT_NO_CONDITION#

Always triggers assertion fail.

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

Definition#

#define AUI_ASSERT_NO_CONDITION(what) AUI_IMPL_FAIL(what)

Detailed Description#

Triggers default C++ assert behavior (that is, program termination) on debug build or throws AAssertionFailedException on release builds, so it can be handled and reported properly in production applications.

Examples#

examples/ui/views/src/ExampleWindow.cpp

Views Example - All-in-one views building example.

                                    }
                                }),
                            _new<ASpacerExpanding>(),
                          },
                          AUI_DECLARATIVE_FOR(i, *state->colors, AWordWrappingLayout) {
                              return Horizontal {
                                  _new<ALabel>(i.toString()) AUI_WITH_STYLE {
                                      TextColor { i.readableBlackOrWhite() },
                                  }
                              } AUI_WITH_STYLE {