You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/items/external-blocks.md
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,18 @@ unsafe extern "C" {
187
187
> [!WARNING]
188
188
> The `safe` qualifier should not be used on a function in an `extern` block unless that function guarantees that it will not access the variadic arguments at all. Passing an unexpected number of arguments or arguments of unexpected type to a variadic function may lead to [undefined behavior][undefined].
189
189
190
+
r[items.extern.variadic.conventions]
191
+
Variadic parameters can only be specified with `extern` blocks with the following ABI strings:
192
+
-`"aapcs"`
193
+
-`"C"`
194
+
-`"cdecl"`
195
+
-`"efiapi"`
196
+
-`"system"`
197
+
-`"sysv64"`
198
+
-`"win64"`
199
+
200
+
This also includes the corresponding [`-unwind` variants][items.fn.extern.unwind].
0 commit comments