OSC: add comptime check for size of OSC Command

This commit is contained in:
Jeffrey C. Ollie
2025-05-24 11:37:34 -05:00
parent bcf4d55dad
commit 5fb32fd8a0

View File

@@ -189,7 +189,7 @@ pub const Command = union(enum) {
}
};
pub const List = std.SegmentedList(ColorOperation, 4);
pub const List = std.SegmentedList(ColorOperation, 2);
pub const Kind = union(enum) {
palette: u8,
@@ -213,6 +213,11 @@ pub const Command = union(enum) {
indeterminate,
pause,
};
comptime {
assert(@sizeOf(Command) == 64);
// @compileLog(@sizeOf(Command));
}
};
/// The terminator used to end an OSC command. For OSC commands that demand