From e36f35d0ee1132a8aa998891ca333ff0c4ed64c2 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 26 Feb 2026 01:19:56 +0200 Subject: example/vec fixes + Doesn't quite work yet, but compiles fine. Some issues were in the example itself, heh --- include/fwd/mod.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/fwd/mod.h b/include/fwd/mod.h index c77e76c..ef0448e 100644 --- a/include/fwd/mod.h +++ b/include/fwd/mod.h @@ -57,7 +57,15 @@ static inline void *fwd_arg(fwd_extern_args_t args, size_t idx, fwd_type_t id) assert(idx < args.argc); assert(args.args[idx + 1].t == id); switch (id) { + case FWD_I8: return &args.args[idx + 1].i8; + case FWD_I16: return &args.args[idx + 1].i16; + case FWD_I32: return &args.args[idx + 1].i32; case FWD_I64: return &args.args[idx + 1].i64; + case FWD_U8: return &args.args[idx + 1].u8; + case FWD_U16: return &args.args[idx + 1].u16; + case FWD_U32: return &args.args[idx + 1].u32; + case FWD_U64: return &args.args[idx + 1].u64; + case FWD_PTR: return &args.args[idx + 1].p; default: abort(); } -- cgit v1.2.3