mirror of
https://github.com/vapaamies/KolibriOS.git
synced 2025-09-21 22:53:51 +02:00
KoW for console applications added
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user