DEADSOFTWARE

mempool is optional now
[d2df-sdl.git] / src / shared / idpool.pas
index 4722be8838635794e913348909d334ba72befdcc..9e0a0124e810bff02b7a74d79d6cf1e5305a1c76 100644 (file)
@@ -19,14 +19,16 @@ unit idpool;
 
 interface
 
+{$IFDEF USE_MEMPOOL}
 uses
   mempool;
+{$ENDIF}
 
 
 // ////////////////////////////////////////////////////////////////////////// //
 type
   //TODO: implement getting n sequential ids
-  TIdPool = class(TPoolObject)
+  TIdPool = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF}
   public
     const InvalidId = $ffffffff;