Mercurial > octave-nkf
view test/ctor-vs-method/__trace__.m @ 20354:227d582fa300 stable
build: Sort generated PKG_ADD contents consistently
* libinterp/mk-pkg-add: Set LC_COLLATE=C when sorting for consistent output.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Fri, 10 Jul 2015 01:10:30 -0400 |
parents | b1283d4c06c2 |
children |
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