adding base extension support
All checks were successful
Build / build (push) Successful in 2m8s
Test / build (push) Successful in 7m17s

This commit is contained in:
2026-01-23 03:23:44 +01:00
parent 27172539e5
commit 37da19ed43
9 changed files with 112 additions and 81 deletions

View File

@@ -1,5 +1,6 @@
const std = @import("std");
const spv = @import("spv.zig");
const op = @import("opcodes.zig");
const RuntimeError = @import("Runtime.zig").RuntimeError;
@@ -228,7 +229,10 @@ pub const Value = union(Type) {
pub const VariantData = union(Variant) {
String: []const u8,
Extension: struct {},
Extension: struct {
/// Should not be allocated but rather a pointer to a static array
dispatcher: []op.OpCodeExtFunc,
},
Type: union(Type) {
Void: struct {},
Bool: struct {},