+ added DebugWriteChar

git-svn-id: branches/wasm@47952 -
This commit is contained in:
nickysn 2021-01-02 07:27:13 +00:00
parent 017b7903cf
commit b80a650c7d

View File

@ -13,6 +13,7 @@ type
procedure fpc_lib_exit; compilerproc;
procedure DebugWrite(const P: PChar);
procedure DebugWriteChar(Ch: Char);
implementation
@ -54,6 +55,15 @@ begin
fd_write(1, @our_iov, 1, @our_nwritten);
end;
procedure DebugWriteChar(Ch: Char);
var
CharArr: array [0..1] of Char;
begin
CharArr[0] := Ch;
CharArr[1] := #0;
DebugWrite(@CharArr);
end;
procedure fpc_lib_exit; compilerproc;
begin
end;