iOS lock step keyboard + metal

This commit is contained in:
agra
2026-05-18 17:40:10 +03:00
parent b43472e6ab
commit f9ecf9d00e
68 changed files with 4794 additions and 203 deletions

View File

@@ -0,0 +1,20 @@
// A closure stored in a struct field receives sub-32-bit enum args
// with the right tag, same as direct or protocol-dispatched calls.
#import "modules/std.sx";
Fmt :: enum { a; b; }
Ctx :: struct {
on: Closure(Fmt) -> void;
}
main :: () -> s32 {
c : Ctx = .{ on = (f: Fmt) => {
n : s64 = xx f;
print("cl f = {}\n", n);
}};
c.on(.b);
c.on(.a);
0;
}