Both in Delphi and in FPC such a directive never existed.
Hi, OK I have searched but not sure of the search-term I am searching for.
I need a Compiler Directive where code is only active/available when I am in the IDE and making changes.
I have searched many things including "directive design" and "directive IDE" and scoured the FPC-wiki. The directive eludes me, IF it even exists.
I remember having something like it in my Delphi days, but cannot remember that either.
Help? :)
Both in Delphi and in FPC such a directive never existed.
Never say, "never" I will find it.
Maybe "Directive" is not the correct word, but there is a way to prevent code being executed or compiled unless it is within the IDE.
{$ifopt C+ Predicated on assertions generating code }
SelfAddressList(); (* These here for testing during *)
BroadcastAddressList() (* development. *)
{$endif }
Maybe "Directive" is not the correct word, but there is a way to prevent code being executed or compiled unless it is within the IDE.
Hi, OK I have searched but not sure of the search-term I am searching for.
I need a Compiler Directive where code is only active/available when I am in the IDE and making changes.
I have searched many things including "directive design" and "directive IDE" and scoured the FPC-wiki. The directive eludes me, IF it even exists.
I remember having something like it in my Delphi days, but cannot remember that either.
Help? :)
in the drop down and add "bin/$(TargetCPU)-$(TargetOS)/Debug/projectName" to the "Target file name" field. This way whenever you are building
There actually is $(BuildMode) (https://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames#Environment)
Don't act so surprised- I was asking, not challenging :-)I actually was suprised, I've been using build modes for nearly every project for the past 4 years now and never even thought about the existence of such a switch
This is something that I really ought to get into the habit of using, although I habitually leave as much range checking etc. in programs as possible.Yeah, this makes everything easier, for your gitignore you now only need to add the bin directory, especially when cross compiling you basically can iterate over the subdirectories in /bin to pack your releases.
MarkMLl