Skip to main content
Version: 1.0

codegen_unreachable

codegen_unreachable[cond: Bool, msg: StringSlice[StaticConstantOrigin], *extra: StringSlice[StaticConstantOrigin]]()

Compilation fails if cond is True and the caller of the function is being generated as runtime code.

Parameters:

  • cond (Bool): The bool value for reachability.
  • msg (StringSlice): The message to display on failure.
  • *extra (StringSlice): Additional messages to concatenate to msg.