Advertisement
Guest User

Untitled

a guest
Nov 29th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. struct {
  2. next: ?*Data = null,
  3. pub fn setNext(self: *const Self, next_: ?*Data) void {
  4. if (next_ != null) {
  5. self.next = next_;
  6. } else {
  7. self.next = null;
  8. }
  9. }
  10.  
  11. ..elsewhere
  12.  
  13. opMsgPrev.?.setNext(null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement