Skip to content

Commit

Permalink
Fix Issue 11846 - Document pragma(mangle) feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrejMitrovic committed Apr 22, 2014
1 parent 47999c9 commit ec559be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pragma.dd
Expand Up @@ -88,6 +88,15 @@ pragma(startaddress, foo);
by the runtime library.
)

$(DT $(D mangle))
$(DD Overrides the default mangling for a symbol. This allows
linking to a symbol which is a D keyword, which would normally
be disallowed as a symbol name:
-----------------
pragma(mangle, "body")
extern(C) void body_func();
-----------------
)

)

Expand Down

0 comments on commit ec559be

Please sign in to comment.