Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 420 Bytes

File metadata and controls

20 lines (13 loc) · 420 Bytes

std.builtin

Built-in utility functions for assertions and debugging.

Functions

assert(condition: Bool, message: String) -> Void

Evaluates condition. If false, prints the assertion failure message.

debug(message: String) -> Void

Prints a debug-prefixed message to standard output.

Examples

load std.builtin

builtin.assert(true, "This will pass")
builtin.debug("Debugging info")