import "ecere" void DoStuff(int level, int maxLevel) { if(level < maxLevel) { int c; for(c = 0; c < 10; c++) DoStuff(level + 1, maxLevel); } PrintLn("Fun"); } class Form1 : Window { caption = "Form1"; background = formColor; borderStyle = sizable; hasMaximize = true; hasMinimize = true; hasClose = true; clientSize = { 632, 438 }; Button button1 { this, caption = "button1", position = { 288, 144 }; bool NotifyClicked(Button button, int x, int y, Modifiers mods) { DoStuff(0, 5); return true; } }; } Form1 form1 {};