33 lines
416 B
Plaintext
33 lines
416 B
Plaintext
# Various miscellaneous utilities
|
|
|
|
|
|
# Some useful builtins
|
|
|
|
fn clock*: float {
|
|
#pragma[magic: "SysClock64", pure]
|
|
}
|
|
|
|
|
|
fn print*(x: int) {
|
|
#pragma[magic: "PrintInt64"]
|
|
}
|
|
|
|
|
|
fn print*(x: uint64) {
|
|
#pragma[magic: "PrintUInt64"]
|
|
}
|
|
|
|
|
|
fn print*(x: float) {
|
|
#pragma[magic: "PrintFloat64"]
|
|
}
|
|
|
|
|
|
fn print*(x: string) {
|
|
#pragma[magic: "PrintString"]
|
|
}
|
|
|
|
|
|
fn print*(x: bool) {
|
|
#pragma[magic: "PrintBool"]
|
|
} |