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

Method Push

CommonB2GrowableStack.go:28–31  ·  view source on GitHub ↗

Push a new element onto the stack

(value interface{})

Source from the content-addressed store, hash-verified

26
27// Push a new element onto the stack
28func (s *B2GrowableStack) Push(value interface{}) {
29 s.top = &StackElement{value, s.top}
30 s.size++
31}
32
33// Remove the top element from the stack and return it's value
34// If the stack is empty, return nil

Callers 2

QueryMethod · 0.95
RayCastMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected