|
Are there any specific macros for Unleashed Pascal (equal to FPC_FULLVERSION, FPC_VERSION, FPC_RELEASE, FPC_RELEASE, FPC_PATCH)? |
Replies: 2 comments 1 reply
|
There is maybe an interesting post to the new makro-feature in the roadmap... |
|
Yes, two of them, but they are presence flags, not version numbers.
{$ifdef UNLEASHED}
{$mode unleashed}
{$else}
{$mode objfpc}
{$endif}
{$if defined(FPC_OBJFPC) or defined(FPC_UNLEASHED)}There is no numeric counterpart of Both defines are documented in unleashed/docs/README.md, section "Conditional Defines". |
Yes, two of them, but they are presence flags, not version numbers.
UNLEASHEDis 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:FPC_UNLEASHEDis the mode marker for{$mode unleashed}(or-Munleashed), following theFPC_OBJFPC/FPC_DELPHIconvention. Mode markers are mutually exclusive: unleashed is based on objfpc, but selecting it does not defineFPC_OBJFPC. For "objfpc or any superset":{$if defined(FPC_OBJFPC) or defined(FPC_UNLEASHED)}There is no numeric counterpart of
FPC_FULLVERSIONfor Unleashed itse…