diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-12 03:20:17 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-12 03:20:17 -0400 |
| commit | fc98d05ef934e7a52161182ca5c55d7b23174012 (patch) | |
| tree | 8839c3634576fe2f7eb1c0ba6ef31ba5051f6aae /environment.c | |
| parent | 790bbab30374f6317ebbc1e6be6a94236e11e370 (diff) | |
Add sleep()
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.c b/environment.c index f61aee56..290ddf97 100644 --- a/environment.c +++ b/environment.c @@ -46,6 +46,7 @@ env_t *new_compilation_unit(CORD *libname) .next=new(arg_t, .name="code", .type=Type(IntType, .bits=TYPE_IBITS32), .default_val=FakeAST(Int, .bits=IBITS32, .str="0"))), .ret=Type(AbortType))}}, {"fail", {.code="fail", .type=Type(FunctionType, .args=new(arg_t, .name="message", .type=Type(CStringType)), .ret=Type(AbortType))}}, + {"sleep", {.code="sleep_num", .type=Type(FunctionType, .args=new(arg_t, .name="seconds", .type=Type(NumType, .bits=TYPE_NBITS64)), .ret=Type(VoidType))}}, {"USE_COLOR", {.code="USE_COLOR", .type=Type(BoolType)}}, }; |
