X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fshared%2Fidpool.pas;h=14bd43c1a2f4f792babd1720a80e94a9bf2a8cbd;hb=e5e27f3580ca5952faa7734096541892afc91819;hp=8cb99e6fca1775be4b4854fcbb4f9ddbb3cbed7a;hpb=31c92166ce1ba9decf93e39f77e77833f879c4b4;p=d2df-sdl.git diff --git a/src/shared/idpool.pas b/src/shared/idpool.pas index 8cb99e6..14bd43c 100644 --- a/src/shared/idpool.pas +++ b/src/shared/idpool.pas @@ -1,9 +1,8 @@ -(* Copyright (C) DooM 2D:Forever Developers +(* Copyright (C) Doom 2D: Forever Developers * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -19,10 +18,16 @@ unit idpool; interface +{$IFDEF USE_MEMPOOL} +uses + mempool; +{$ENDIF} + + // ////////////////////////////////////////////////////////////////////////// // type //TODO: implement getting n sequential ids - TIdPool = class(TObject) + TIdPool = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF} public const InvalidId = $ffffffff;