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
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -179,9 +179,13 @@ unsafe extern "C" {
179
179
unsafefnfoo(...);
180
180
unsafefnbar(x:i32, ...);
181
181
unsafefnwith_name(format:*constu8, args:...);
182
+
safefnignores_variadic_arguments(x:i32, ...);
182
183
}
183
184
```
184
185
186
+
> [!WARNING]
187
+
> `safe` should only be used in cases where the function does not look at the variadic arguments at all. Passing an unexpected number of arguments or arguments of an unexpected type to a variadic function is [undefined behavior][undefined].
0 commit comments