CMCHTPC / DelphiDX12

DirectX 12 Headers for Delphi and FPC
92 stars 35 forks source link

inline #14

Open JernejL opened 6 years ago

JernejL commented 6 years ago

inline is nowdays fully supported in later versions of delphi and in freepascal.

FactoryXCode commented 5 years ago

Indeed: Delphi Example : // Calculate the argument to SetVolume from a decibel value function XAudio2DecibelsToAmplitudeRatio(Decibels: FLOAT): FLOAT; {$IF CompilerVersion >= 18.0} inline; {$ENDIF} begin Result:= power(10.0, Decibels / 20.0); end; Compilerversion 18.0 = Delphi 2007