From 05117cef2423ddc5deedf5dd51df28806065d0c8 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Tue, 9 Jun 2026 20:12:45 -0400 Subject: Make floating-point optional --- include/lcq/pit/runtime.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/lcq') 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); -- cgit v1.2.3