In ATS2, there is a special way to do this.
Say what you have
fnx foo(...) = bar(...)
and bar(...) = ...bar...
If the panel body contains a non-tail-recursive call to bar, then the C compiler should complain about the error message.
, () . , - , ( ): , ATS !