3#include "pixelbullet/application/layer.h"
6namespace pixelbullet::application_internal
8inline void RegisterUiFrameLayer(UiFrameLayer*& owner, Layer& layer)
10 auto* candidate =
dynamic_cast<UiFrameLayer*
>(&layer);
16 DEBUG_ASSERT(owner ==
nullptr || owner == candidate,
"Only one UiFrameLayer may be registered per application");
Provides assertion and panic mechanisms with optional custom formatting.
#define DEBUG_ASSERT(condition,...)
Debug-only assertion.
Definition assert.h:183