Mojo function
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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!