Перейти к содержимому

WWDC25: Safely mix C, C++, and Swift | Apple

Apple Developer

0:00 / 0:00

WWDC25: Safely mix C, C++, and Swift | Apple

6 004 просмотра · 1 год назад
Apple Developer
330 тыс. подписчиков
6 004 просмотра · 1 год назад
Learn how to mix C, C++, and Swift while improving the safety of your apps. We’ll show you how to find where unsafe C and C++ APIs are called in your Swift code, how to call them more safely, and how to make your app’s existing C and C++ code safer by default. Explore related documentation, sample code, and more: Safely Mixing Swift and C++: https://www.swift.org/documentation/c... -fbounds-safety: Enforcing bounds safety for C: https://clang.llvm.org/docs/BoundsSaf... Improve memory usage and performance with Swift: https://developer.apple.com/videos/pl... 00:00 - Introduction 02:39 - Finding unsafe call in Swift 04:55 - Calling C/C++ safely 07:25 - Functions taking pointers 17:13 - Functions returning pointers 20:16 - Importing custom types 26:57 - Improving safety of C/C++ 30:48 - Wrap-up More Apple Developer resources: Video sessions: https://apple.co/VideoSessions Documentation: https://apple.co/DeveloperDocs Forums: https://apple.co/DeveloperForums App: https://apple.co/DeveloperApp