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,19 @@
// `xx <closure>` passed as a `*Block` fn argument auto-allocates the
// Block instance and passes its address — no named temp required.
// Matches the ergonomics of ObjC's `^{...}` literal at the call site.
#import "modules/std.sx";
#import "modules/std/objc_block.sx";
invoke_once :: (b: *Block) {
invoke_fn : (*Block) -> void = xx b.invoke;
invoke_fn(b);
}
main :: () -> s32 {
x : s64 = 7;
invoke_once(xx () => {
print("inline block, x = {}\n", x);
});
0;
}