Project

General

Profile

« Previous | Next » 

Revision 14730

lib/sh/util.sh: echo_func(): get call context before wrapper(s), which is more useful for debugging. this uses skip_stack_frames()'s lookahead=1 mode.

View differences:

trunk/lib/sh/util.sh
909 909
		
910 910
		exclude='log*' skip_stack_frames # remove log* prefix to echo_func
911 911
		
912
		# get call context before wrapper(s), which is more useful for debugging
912 913
		get_stack_frame
913
		format_stack_frame "$@"
914
		local func_="$func" # don\'t change function name itself, just call info
915
		exclude='with_*' lookahead=1 skip_stack_frames
916
		
917
		get_stack_frame
918
		func="$func_" format_stack_frame "$@"
914 919
	)"
915 920
}
916 921
# see echo_func alias after stub

Also available in: Unified diff