diff options
| author | LLLL Colonq <llll@colonq> | 2026-06-09 20:12:45 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-06-09 20:12:45 -0400 |
| commit | 05117cef2423ddc5deedf5dd51df28806065d0c8 (patch) | |
| tree | 5e4140c5679122b1c37253e3843667c254934f46 /include | |
| parent | 2bed368821af4fcb06435bfe849332f5a813e470 (diff) | |
Make floating-point optional
Diffstat (limited to 'include')
| -rw-r--r-- | include/lcq/pit/runtime.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/lcq/pit/runtime.h b/include/lcq/pit/runtime.h index d4b1b9e..48e2bcd 100644 --- a/include/lcq/pit/runtime.h +++ b/include/lcq/pit/runtime.h @@ -115,8 +115,10 @@ void pit_error(pit_runtime *rt, char *format, ...); /* working with small values */ pit_value pit_value_new(pit_runtime *rt, enum pit_value_sort s, u64 data); +#ifndef PIT_NO_DOUBLE double pit_as_double(pit_runtime *rt, pit_value v); pit_value pit_double_new(pit_runtime *rt, double d); +#endif i64 pit_as_integer(pit_runtime *rt, pit_value v); pit_value pit_integer_new(pit_runtime *rt, i64 i); pit_value pit_bool_new(pit_runtime *rt, bool i); |
