Skip to content

Add "SUPPORTS_" features to generated INC file as needed #3

@darianmiller

Description

@darianmiller

Basic functionality in place, but might be nice to bring over supports like the items below from
https://github.com/darianmiller/dxLib/blob/master/Source/dxLib.inc

//usability note: not desired to reference DX_DELPHIXXX_UP directly in code,
//it's better to reference a feature support define below (keep the specific differences between Delphi versions in this file)

{$IFDEF DX_DELPHI4_UP}
  {$DEFINE DX_Supports_Int64}
{$ENDIF}

{$IFDEF DX_DELPHI6_UP}
  {$DEFINE DX_Has_Unit_Variants}
  {$DEFINE DX_Supports_SLineBreak} 
  {$DEFINE DX_Supports_RaiseLastOSError}           
  {$DEFINE DX_Supports_Deprecated_Warning}
  {$DEFINE DX_Supports_Sorted_GetPropList}         //re: TypInfo
  {$DEFINE DX_Supports_Symbol_Platform_Warning}    //re: WARN SYMBOL_PLATFORM OFF
{$ENDIF}

{$IFDEF DX_DELPHI2006_UP}
  {$DEFINE DX_Supports_ReportMemoryLeaksOnShutdown}
  {$DEFINE DX_Supports_TBytes}
{$ENDIF}

{$IFDEF DX_DELPHI2007_UP}
  {$DEFINE DX_Supports_MainFormOnTaskbar}
{$ENDIF}

{$IFDEF DX_DELPHI2009_UP}
  {$DEFINE DX_String_Is_UTF16}
  {$DEFINE DX_Supports_CharInSet}   //todo: validate when this was introduced
{$ENDIF}                          

{$IFDEF DX_DELPHI2010_UP}
  {$DEFINE DX_Supports_NameThreadForDebugging}
{$ENDIF}

{$IFDEF DX_DELPHIXE_UP}
  {$DEFINE DX_TThread_Deprecated_Resume}
{$ENDIF}

{$IFDEF DX_DELPHIXE2_UP}
  {$DEFINE DX_Has_Unit_UITypes}
  {$DEFINE DX_UnitScopeNames}
{$ENDIF}



//special overrides

{$IFDEF NEXTGEN}
 {$ZEROBASEDSTRINGS OFF}  //http://riversoftavg.com/blogs/index.php/2015/01/17/zerobasedstrings-just-dont/
{$ENDIF}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions