From: Andrew DeFaria Date: Tue, 10 Jan 2017 02:32:13 +0000 (-0800) Subject: Added traceEnter and traceExit X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=9b0c772b2c23bee8ffe8d46e6f0fb4a39d8c9374;p=clearscm.git Added traceEnter and traceExit --- diff --git a/functions/display b/functions/display index 16c6864..7fdcec8 100644 --- a/functions/display +++ b/functions/display @@ -56,3 +56,15 @@ function debug { display_stderr "$@" fi } # debug + +function traceEnter { + if [ ! -z "$trace" ]; then + display_stderr "ENTER function ${FUNCNAME[1]}" + fi +} # traceEnter + +function traceExit { + if [ ! -z "$trace" ]; then + display_stderr "EXIT function ${FUNCNAME[1]}" + fi +} # traceExit \ No newline at end of file