From 9c0c44c0ddc35cb3eaa8ff35b7265d1b54d25e09 Mon Sep 17 00:00:00 2001 From: bgk- Date: Fri, 19 Apr 2024 22:04:48 -0700 Subject: [PATCH] Update README --- README.md | 2 +- src/values.zig | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index af41941..999e77f 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ and [LoLa](https://github.com/MasterQ32/LoLa/tree/master) both of which are cred ## Contributing -Download and install [Zig](https://ziglang.org). Currently Topiary uses version `0.12.0-dev.2334+aef1da163` +Download and install [Zig](https://ziglang.org). Currently Topiary uses version `0.12.0-dev.3686+3adfaf91f` ``` git clone https://github.com/peartreegames/topiary diff --git a/src/values.zig b/src/values.zig index 6291b1a..42a351d 100644 --- a/src/values.zig +++ b/src/values.zig @@ -39,6 +39,8 @@ pub const ExportFunctionDelegate = *const fn (args: []Value) Value; pub const adapter = Value.Adapter{}; +// todo: Get proper names +// https://ziglang.org/documentation/master/#toc-Avoid-Redundancy-in-Names pub const Value = union(Type) { void: void, nil: void, @@ -57,11 +59,12 @@ pub const Value = union(Type) { enum_value: Enum.Val, ref: ID, + /// Allocated Value pub const Obj = struct { is_marked: bool = false, + next: ?*Obj = null, // used for serializing references id: ID = UUID.Empty, - next: ?*Obj = null, data: Data, pub const DataType = enum(u8) {