Mercurial > octave-nkf
view test/ctor-vs-method/__trace__.m @ 14205:fe2ace7a35da stable
Added tag release-3.6.0 for changeset 704f7895eef0
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 15 Jan 2012 14:56:37 -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