mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 01:48:00 +02:00
* proper implementation for the function Sptr (which returns the stack pointer) for WebAssembly
This commit is contained in:
parent
23dec631f5
commit
b340994e1b
@ -71,9 +71,9 @@ function get_caller_frame(framebp:pointer;addr:pointer=nil):pointer;
|
||||
|
||||
|
||||
{$define FPC_SYSTEM_HAS_SPTR}
|
||||
function Sptr : pointer;
|
||||
begin
|
||||
result:=nil;
|
||||
function Sptr : pointer; assembler; nostackframe;
|
||||
asm
|
||||
global.get $__stack_pointer
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user