Sign in Join
FPDoc Onlineexperiment

SPtr function

In unit System

Return current stack pointer.

Declaration

pascal
function SPtr: Pointer

Description

Sptr returns the current stack pointer.

Errors

None.

See also

Example: ex64

pascal
program Example64;

{ Program to demonstrate the sptr function. }

var p:pointer;

begin
  p:=sptr; { P Contains now the current stack position. }
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.