Mercurial > octave-nkf
view test/ctor-vs-method/__trace__.m @ 14626:f947d2922feb stable rc-3-6-2-0
3.6.2-rc0 release candidate
* configure.ac (AC_INIT): Version is now 3.6.2-rc0.
(OCTAVE_RELEASE_DATE): Now 2012-05-11.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 May 2012 13:46:18 -0400 |
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