MCPcopy Create free account
hub / github.com/ByteArena/box2d / Pop

Method Pop

CommonB2GrowableStack.go:35–42  ·  view source on GitHub ↗

Remove the top element from the stack and return it's value If the stack is empty, return nil

()

Source from the content-addressed store, hash-verified

33// Remove the top element from the stack and return it's value
34// If the stack is empty, return nil
35func (s *B2GrowableStack) Pop() (value interface{}) {
36 if s.size > 0 {
37 value, s.top = s.top.value, s.top.next
38 s.size--
39 return
40 }
41 return nil
42}

Callers 2

QueryMethod · 0.95
RayCastMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected