From 174e560a23e40725cd0b50669a52d831342e5246 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 29 Sep 2017 16:46:01 +0100 Subject: 41787 (plus minor tweaks): use $FUNCSTACK for function nesting depth. Initialised from existing configuration value. --- Test/C04funcdef.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test') diff --git a/Test/C04funcdef.ztst b/Test/C04funcdef.ztst index 6a675e0b4..0c00a0477 100644 --- a/Test/C04funcdef.ztst +++ b/Test/C04funcdef.ztst @@ -515,6 +515,14 @@ 0:autoload with absolute path not cancelled by bare autoload >I have been loaded by explicit path. + ( + FUNCNEST=0 + fn() { true; } + fn + ) +1: +?fn:4: maximum nested function level reached; increase FUNCNEST? + %clean rm -f file.in file.out -- cgit 1.4.1