Add ImportC compiler to dmd

deadalnix deadalnix at gmail.com
Mon May 10 23:01:02 UTC 2021


On Monday, 10 May 2021 at 00:47:22 UTC, Walter Bright wrote:
> On 5/9/2021 4:27 PM, Max Haughton wrote:
>> `inline` in the C standard (although given as an example C11 
>> footnote 138) technically *only* has guaranteed implications 
>> other than actually inlining the function, is ignoring it 
>> valid?
>
> C11 6.7.4-6 says:
>
> "A function declared with an inline function specifier is an 
> inline function. Making a function an inline function suggests 
> that calls to the function be as fast as possible. The extent 
> to which such suggestions are effective is 
> implementation-defined."
>
> Ignoring it is not only valid, it's what modern C compilers do 
> anyway.

inline change the linker flags so that multiple definitions do 
not fail. That's all it does.


More information about the Digitalmars-d mailing list