Recent

Author Topic: Is this correct initialization of my plim-record?  (Read 106 times)

cdbc

  • Hero Member
  • *****
  • Posts: 2808
    • http://www.cdbc.dk
Is this correct initialization of my plim-record?
« on: May 07, 2026, 01:51:39 pm »
Hi
Is this correct:
Code: Pascal  [Select][+][-]
  1.   Plim:= Default(TPlimOptions);
  2.   with Plim do begin
  3.     poActiveOnly:= true; { one can allways go back to loading the lot, by setting it false }
  4.     poDebug:= false;
  5.     poWait:= 2;
  6.     {$ifdef unix}
  7.       {$ifdef mac}
  8.         poLibExt:= '.dylib';
  9.       {$else}
  10.         poLibExt:= '.so';
  11.       {$endif}
  12.     {$else}
  13.       poLibExt:= '.dll';
  14.     {$endif} { winders }
  15.     podbgts:= 0;
  16.     podbgte:= 0;
  17.   end;
I mean the ifdef parts?
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Thausand

  • Hero Member
  • *****
  • Posts: 560
A docile goblin always follow HERMES.md

Zvoni

  • Hero Member
  • *****
  • Posts: 3396
Re: Is this correct initialization of my plim-record?
« Reply #2 on: May 07, 2026, 02:10:03 pm »
Is this correct:
I mean the ifdef parts?
No. https://wiki.freepascal.org/Platform_defines

Yepp
Code: Pascal  [Select][+][-]
  1. {$IFDEF WINDOWS}
  2.   poLibExt:='.dll';
  3. {$ELSE}
  4.   {$IFDEF UNIX}
  5.     {$IFDEF DARWIN}
  6.        poLibExt:='.dylib';
  7.     {$ELSE}
  8.        poLibExt:='.so';
  9.     {$ENDIF}
  10.   {$ENDIF}
  11. {$ENDIF}
« Last Edit: May 07, 2026, 02:12:01 pm by Zvoni »
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

cdbc

  • Hero Member
  • *****
  • Posts: 2808
    • http://www.cdbc.dk
Re: Is this correct initialization of my plim-record?
« Reply #3 on: May 07, 2026, 02:17:04 pm »
Hi Zvoni
Thanks mate  :D
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

 

TinyPortal © 2005-2018