Skip to content

Update for latest zig#181

Merged
SamTebbs33 merged 1 commit intodevelopfrom
feature/zig-update
Jul 6, 2020
Merged

Update for latest zig#181
SamTebbs33 merged 1 commit intodevelopfrom
feature/zig-update

Conversation

@SamTebbs33
Copy link
Collaborator

No description provided.

pub fn addAction(self: *Self, comptime fun_name: []const u8, data: var, action_type: ActionType) void {
// Add a new mapping if one doesn't exist.
if (!self.named_actions.contains(fun_name)) {
expect(self.named_actions.put(fun_name, TailQueue(Action).init()) catch unreachable == null);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to change this because put now returns void so there's nothing to compare with null.

Copy link
Member

@DrDeano DrDeano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@SamTebbs33 SamTebbs33 merged commit 34d7bb6 into develop Jul 6, 2020
@SamTebbs33 SamTebbs33 deleted the feature/zig-update branch July 6, 2020 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants