* Alloc/Free exports

This commit is contained in:
Michaël Van Canneyt 2022-05-18 21:36:17 +02:00
parent e4bf5e3da0
commit a3a1ba5d28

View File

@ -303,6 +303,8 @@ type
TWASIExports = Class External name 'Object' (TJSModulesExports)
Public
Procedure start; external name '_start';
function AllocMem(aSize : Integer) : Integer; external name 'wasiAlloc';
function freeMem(aLocation : Integer) : Integer; external name 'wasiFree';
end;
TGetConsoleInputBufferEvent = Reference to Procedure(Sender : TObject; Var AInput : TJSUint8Array);