GDC UDA Attributes (was 'checkedint call removal')

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 6 08:21:23 PDT 2014


On 2014-08-03 19:59, Artur Skawina via Digitalmars-d wrote:

> No; the advantage of using these magic UDA is that they don't need
> to be vendor-specific. IOW one can define "inline" as the GDC magic
> attribute, or nothing. Maybe even some other compiler can support it.
> And the source code remains portable.
>
> @GNU_forceinline @LLVM_forceinline @DM_forceinline @SDC_forceinline int foobar(); // ...

It's also possible to use fully qualified names if one wants to be 
specific about the UDA to use.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list