static_assert

Description

@experimetal Perform a compile-time condition check and emit a compile-time error if the condition is false.

Signature

void static_assert(
    bool condition,
    NativeString errorMessage);

Parameters

condition : bool

The compile-time condition to check.

errorMessage : NativeString

The error message to emit if the condition is false.