← All docs
sleep() — internals
Compiler internals for sleep(): lowering path, type checks, and runtime helpers.
sleep() — internals
Where it lives
- Signature:
src/builtins/system/sleep.rs - Lowering:
src/codegen/lower_inst/builtins/system.rs:473 (lower_sleep) - Function symbol:
lower_sleep()
Lowering notes
- Lowers
sleep(seconds)through the target’s C library symbol.
Runtime helpers
The following runtime helpers are referenced:
__rt_strtotime
Signature summary
function sleep(int $seconds): int
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/time/sleep.rs(eval_builtin!) - Dispatch hooks:
direct,values