[Bug 205] Add pragma(inline) to the grammar
via D.gnu
d.gnu at puremagic.com
Sat Jan 30 21:43:56 PST 2016
http://bugzilla.gdcproject.org/show_bug.cgi?id=205
Daniel Murphy <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #3 from Daniel Murphy <yebblies at gmail.com> ---
(In reply to thomas.bockman from comment #2)
> Nevermind - although it compiles, it turns out that my workaround doesn't
> actually control inlining on DMD.
>
> So, I still need
> pragma(inline, true):
> Or
> pragma(inline, true {
> }
> Added to the GDC grammar to be able to share one code base across all the
> major compilers.
What about moving the pragma inside the function?
void func()
{
version (DigitalMars)
{
pragma(inline, true);
}
}
void main()
{
func();
}
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20160131/7157b2ed/attachment.html>
More information about the D.gnu
mailing list