docs: complete the documentation for extern struct

closes #1522
This commit is contained in:
Andrew Kelley 2019-04-04 01:23:41 -04:00
parent e4d595a8ba
commit 90b6eab05a
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -2127,6 +2127,8 @@ test "linked list" {
{#header_open|extern struct#}
<p>An {#syntax#}extern struct{#endsyntax#} has in-memory layout guaranteed to match the
C ABI for the target.</p>
<p>This kind of struct should only be used for compatibility with the C ABI. Every other
use case should be solved with {#link|packed struct#} or normal {#link|struct#}.</p>
{#see_also|extern union|extern enum#}
{#header_close#}