You are here

public function ctools_math_expr_stack::push in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/math-expr.inc \ctools_math_expr_stack::push()

Push the value onto the stack.

Parameters

mixed $val:

File

includes/math-expr.inc, line 846
=============================================================================.

Class

ctools_math_expr_stack
Class implementing a simple stack structure, used by ctools_math_expr.

Code

public function push($val) {
  $this->stack[$this->count] = $val;
  $this->count++;
}