KoW for console applications added

This commit is contained in:
2021-01-08 18:39:17 +03:00
parent 305cd924f7
commit 5f3fca1705
29 changed files with 824 additions and 134 deletions

View File

@@ -106,8 +106,6 @@ Change log:
the main application's MM.
}
{$define KolibriOS}
unit FastMM;
interface
@@ -1904,12 +1902,11 @@ end;
{$endif}
initialization
{$ifndef KolibriOS}
{Has another MM been set, or has the Borland MM been used? If so, this file
is not the first unit in the uses clause of the project's .dpr file.}
if IsMemoryManagerSet or (GetHeapStatus.TotalAllocated <> 0) then
System.Error(reInvalidPtr);
{$endif KolibriOS}
if IsMemoryManagerSet {or (GetHeapStatus.TotalAllocated <> 0)} then
RunError(ERROR_INVALID_POINTER){System.Error(reInvalidPtr)};
{Install the memory manager}
InstallMemoryManager;
@@ -1922,4 +1919,4 @@ finalization
{Restore the old memory manager}
UninstallMemoryManager;
end.
end.