Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
bgk- committed Apr 20, 2024
1 parent 4d71a7a commit 9c0c44c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/values.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit 9c0c44c

Please sign in to comment.