summaryrefslogtreecommitdiff
path: root/include/lcq
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-06-09 20:12:45 -0400
committerLLLL Colonq <llll@colonq>2026-06-09 20:12:45 -0400
commit05117cef2423ddc5deedf5dd51df28806065d0c8 (patch)
tree5e4140c5679122b1c37253e3843667c254934f46 /include/lcq
parent2bed368821af4fcb06435bfe849332f5a813e470 (diff)
Make floating-point optional
Diffstat (limited to 'include/lcq')
-rw-r--r--include/lcq/pit/runtime.h2
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);