aboutsummaryrefslogtreecommitdiff
path: root/src/all.hff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-13 07:27:37 +0200
committerlemon <lsof@mailbox.org>2022-08-13 07:27:37 +0200
commit62132ecc8d032ef251d6b54177414a9ba29e8610 (patch)
treed16f27f85c4dea8c36c70b7125b14b32032ce5ae /src/all.hff
parent58af6dcf569c7f83b317d30f8dd85d96d314d785 (diff)
fix cgen cond
Diffstat (limited to 'src/all.hff')
-rw-r--r--src/all.hff4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/all.hff b/src/all.hff
index 895657a..f15df13 100644
--- a/src/all.hff
+++ b/src/all.hff
@@ -133,3 +133,7 @@ fn bswap64(x u64) u64 {
return (as(u64)bswap32(x) << 32)
| (bswap32(x >> 32));
}
+
+fn spanz(x *const u8) [#]const u8 {
+ return x[0::strlen(x)];
+}