Recent

Author Topic: Define definition  (Read 3551 times)

Imants

  • Full Member
  • ***
  • Posts: 198
Define definition
« on: May 20, 2010, 10:46:41 am »
Where I can define my custon defines in Lazarus.
Like I want to create:

{$IFDEF SERVER}
....
{$ENDIF}

SERVER will be my custom define

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1931
Re: Define definition
« Reply #1 on: May 20, 2010, 11:23:31 am »
Guess ;-)
{$DEFINE SERVER}

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11164
  • Debugger - SynEdit - and more
    • wiki
Re: Define definition
« Reply #2 on: May 20, 2010, 11:24:33 am »
Project => Project options (or Compiler options in older Lazarus).

Page: "Compiler options" -> other

in Custom options field
-dSERVER

 

TinyPortal © 2005-2018