Fix compatibility with C++
which doesn't support designated init.
This commit is contained in:
1 parent
5533ffffaa
commit
1c5c4aa50f
3 files changed
+26
-6
No files matched your search
@@ -4031,10 +4031,22 @@ Provide the static initialization value of an object defined with a
|
||||
ISHARED\_PTR\_INTERFACE extra fields. It shall be used only for global
|
||||
variables with the \_init\_once function.
|
||||
|
||||
Usage:
|
||||
Usage (provided that the interface is used as the first element of the structure):
|
||||
|
||||
struct mystruct variable = { ISHARED_PTR_STATIC_INIT(ishared_double, struct mystruct) };
|
||||
|
||||
#### ISHARED\_PTR\_STATIC\_DESIGNATED\_INIT(name, type)
|
||||
|
||||
Provide the static initialization value of an object defined with a
|
||||
ISHARED\_PTR\_INTERFACE extra fields. It shall be used only for global
|
||||
variables with the \_init\_once function.
|
||||
|
||||
It uses designated initializers to set the right fields.
|
||||
|
||||
Usage:
|
||||
|
||||
struct mystruct variable = { ISHARED_PTR_STATIC_DESIGNATED_INIT(ishared_double, struct mystruct) };
|
||||
|
||||
#### ISHARED\_PTR\_DEF(name, type[, oplist])
|
||||
|
||||
Define the associated methods to handle the shared pointer named 'name'
|
||||
|
||||
Reference in new issue
Block a user