Debian Codegraph @

test/nsfuncrecurse.awk

raw
1 @namespace "foo"
2
3 function test(v)
4 {
5 if (v <= 0)
6 return
7
8 Level++
9 v--
10 printf("Level = %d, v = %d\n", Level, v)
11 test(v)
12 Level--
13 }
14
15 BEGIN {
16 Level = 0
17 test(5)
18 }