@@ -121,12 +121,12 @@ def InitPriorityDocs : Documentation {
121121In C++, the order in which global variables are initialized across translation
122122units is unspecified, unlike the ordering within a single translation unit. The
123123``init_priority`` attribute allows you to specify a relative ordering for the
124- initialization of objects declared at namespace scope in C++, even between translation
125- units (but within a single final linked image) . The priority is given as an integer
126- constant expression between 101 and 65535 (inclusive). Priorities outside of that
127- range are reserved for use by the implementation. A lower value indicates a higher
128- priority of initialization. Note that only the relative ordering of values is
129- important. For example:
124+ initialization of objects declared at namespace scope in C++ within a single
125+ linked image on supported platforms . The priority is given as an integer constant
126+ expression between 101 and 65535 (inclusive). Priorities outside of that range are
127+ reserved for use by the implementation. A lower value indicates a higher priority
128+ of initialization. Note that only the relative ordering of values is important.
129+ For example:
130130
131131.. code-block:: c++
132132
@@ -144,11 +144,11 @@ On Windows, ``init_seg(compiler)`` is represented with a priority of 200 and
144144``init_seg(library)`` is represented with a priority of 400. ``init_seg(user)``
145145uses the default 65535 priority.
146146
147+ On MachO platforms, this attribute also does not control the order of initialization
148+ across translation units, where it only affects the order within a single TU.
149+
147150This attribute is only supported for C++ and Objective-C++ and is ignored in
148151other language modes. Currently, this attribute is not implemented on z/OS.
149- This attribute also does not control the order of initialization across
150- translation units on Mach-O platforms, where it only affects the order within
151- a single TU.
152152 }];
153153}
154154
0 commit comments