Skip to content
Discussion options

You must be logged in to vote

Yes, two of them, but they are presence flags, not version numbers.

UNLEASHED is defined by the compiler in every mode and on every target. It identifies the compiler, not the active mode, so one source tree keeps working with stock FPC:

{$ifdef UNLEASHED}
  {$mode unleashed}
{$else}
  {$mode objfpc}
{$endif}

FPC_UNLEASHED is the mode marker for {$mode unleashed} (or -Munleashed), following the FPC_OBJFPC / FPC_DELPHI convention. Mode markers are mutually exclusive: unleashed is based on objfpc, but selecting it does not define FPC_OBJFPC. For "objfpc or any superset":

{$if defined(FPC_OBJFPC) or defined(FPC_UNLEASHED)}

There is no numeric counterpart of FPC_FULLVERSION for Unleashed itse…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@fibodevy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fibodevy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants