Skip to content

Miscellaneous

time

Overload Description
time() -> Int Returns the current time (starting from the UNIX epoch) in nanoseconds

truncate

Overload Description
truncate(n: Int) -> Int Truncates n to be 64 bits at most, keeping the least significat bits

panic

Overload Description
panic(err: String) -> () Throws err as an error and stops the execution of the program

emit

Only available in macro code execution contexts

Overload Description
emit(text: String) -> () Sends text to the macro output buffer to parse the whole buffer when the execution context ends