summaryrefslogtreecommitdiff
path: root/src/message.zig
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-04-28 07:34:45 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-04-30 13:46:54 -0400
commit66ea478617865552ab493d12a3c2f8e31f509eb1 (patch)
treee1bdc8291dffa11593d810b282f8074df695252c /src/message.zig
parent08954b9f3d2d0204469a3c8d2d69418d02e74215 (diff)
Diffstat (limited to 'src/message.zig')
-rw-r--r--src/message.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/message.zig b/src/message.zig
index efeea29..01eb72c 100644
--- a/src/message.zig
+++ b/src/message.zig
@@ -82,7 +82,11 @@ test "testing variable length zero copy struct" {
zcm.type = .relay;
zcm.length = 3;
std.debug.print("{any}\n", .{zcm});
- std.debug.print("{any}\n", .{zcm.getSaprusTypePayload()});
+ std.debug.print("{any}\n", .{(try zcm.getSaprusTypePayload()).relay});
+ if (false) {
+ // Illegal behavior
+ std.debug.print("{any}\n", .{(try zcm.getSaprusTypePayload()).connection});
+ }
if (false) {
std.debug.print("{any}\n", .{zcm.getRelay()});
std.debug.print("{any}\n", .{zcm.getConnection()});