view test/ctor-vs-method/__trace__.m @ 16062:cc5a7d1233f3 stable rc-3-6-4-2

bump version for 3.6.4-rc2 * configure.ac (AC_INIT): Version is now 3.6.4-rc2. (OCTAVE_RELEASE_DATE): Now 2013-02-11. (OCTAVE_COPYRIGHT): Now 2013.
author John W. Eaton <jwe@octave.org>
date Mon, 11 Feb 2013 16:22:26 -0500
parents 6c952376482d
children b1283d4c06c2
line wrap: on
line source

function r = __trace__ (t)
  persistent history
  if (isempty (history))
    history = {};
  end
  if (nargin == 0)
    if (nargout == 0)
      history = {};
    else
      r = history;
    end
  elseif (nargin == 1);
    history = [history; t];
  else
    error ('incorrect call to __trace__');
  end
end