--- layout: stdlib-reference --- # 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](../types/nativestring-06/index.html) The error message to emit if the condition is false.