mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-17 08:09:13 +02:00
* Alloc/Free exports
This commit is contained in:
parent
e4bf5e3da0
commit
a3a1ba5d28
@ -303,6 +303,8 @@ type
|
|||||||
TWASIExports = Class External name 'Object' (TJSModulesExports)
|
TWASIExports = Class External name 'Object' (TJSModulesExports)
|
||||||
Public
|
Public
|
||||||
Procedure start; external name '_start';
|
Procedure start; external name '_start';
|
||||||
|
function AllocMem(aSize : Integer) : Integer; external name 'wasiAlloc';
|
||||||
|
function freeMem(aLocation : Integer) : Integer; external name 'wasiFree';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TGetConsoleInputBufferEvent = Reference to Procedure(Sender : TObject; Var AInput : TJSUint8Array);
|
TGetConsoleInputBufferEvent = Reference to Procedure(Sender : TObject; Var AInput : TJSUint8Array);
|
||||||
|
Loading…
Reference in New Issue
Block a user