%% Comment=Demo function with cleanup.
%% FuncName=DemoCleanup
%% FuncType=String
%% FuncArgs=arg:String
%% FuncRes=res
{
%Comment%
}
function %FuncName%(%FuncArgs%):%FuncType%;
var s:String; %FuncRes%:%FuncType%;
 procedure Cleanup;
 begin
  s:='';
 end;
begin
 Cleanup;
 {}
 %FuncName%:=%FuncRes%;
 Cleanup;
end;
