So my problem looks like, I have two procedures and they call each other but this can provide overflow. How to JUMP to procedure - like asm jmp not call? I don't want to use labels because I can't use GoTo between two different procedures. And I don't want the code which follows calling to a procedure to be executed. BTW, I use FPC.
unit sample;
interface
procedure procone;
procedure proctwo;
implementation
procedure procone;
begin
writeln('Something');
proctwo;
writeln('After proctwo'); //don't execute this!
end;
procedure proctwo;
begin
writeln('Something else');
procone;
writeln('After one still in two'); //don't execute this either
end;
end.